<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aniket Chauhan</title>
    <description>The latest articles on DEV Community by Aniket Chauhan (@aniket_chauhan).</description>
    <link>https://dev.to/aniket_chauhan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F315280%2Faac15a59-3848-4f0c-8a98-a9d3745ff435.png</url>
      <title>DEV Community: Aniket Chauhan</title>
      <link>https://dev.to/aniket_chauhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aniket_chauhan"/>
    <language>en</language>
    <item>
      <title>Dynamic Gallery with Netlify Image CDN</title>
      <dc:creator>Aniket Chauhan</dc:creator>
      <pubDate>Mon, 13 May 2024 06:57:34 +0000</pubDate>
      <link>https://dev.to/aniket_chauhan/dynamic-gallery-with-netlify-image-cdn-2k80</link>
      <guid>https://dev.to/aniket_chauhan/dynamic-gallery-with-netlify-image-cdn-2k80</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/netlify"&gt;Netlify Dynamic Site Challenge&lt;/a&gt;: Visual Feast.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;An interactive image gallery using Next.js, taking advantage of Netlify's powerful image transformation capabilities. Enabling dynamic resizing of images based on random Height and Fit values for Masonry Grid.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Link for live demo: &lt;a href="https://transforma.netlify.app/"&gt;Dynamic Image Gallery&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr5eo4lidqjjlk8d03zk3.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr5eo4lidqjjlk8d03zk3.gif" alt="Image description" width="600" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Platform Primitives
&lt;/h2&gt;

&lt;p&gt;At the core of this project is the utilization of Netlify's Image CDN. By integrating Netlify's on-demand image transformation features, I ensured that each image in the gallery is dynamically resized, formatted, and optimized based on the user's device and screen size.&lt;/p&gt;

&lt;p&gt;Note: &lt;a href="https://www.pexels.com"&gt;Photos provided by Pexels&lt;/a&gt;&lt;/p&gt;

</description>
      <category>netlifychallenge</category>
      <category>devchallenge</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Display interactive 3D models in Web/AR</title>
      <dc:creator>Aniket Chauhan</dc:creator>
      <pubDate>Sun, 21 Nov 2021 13:17:33 +0000</pubDate>
      <link>https://dev.to/aniket_chauhan/display-interactive-3d-models-in-webar-jh2</link>
      <guid>https://dev.to/aniket_chauhan/display-interactive-3d-models-in-webar-jh2</guid>
      <description>&lt;p&gt;Easily display your 3D elements on Web or in AR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; You must be aware of the basics of HTML, CSS and JavaScript(ES6).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approach:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start with an index.html file.&lt;/li&gt;
&lt;li&gt;Then we have to add &lt;code&gt;&amp;lt;model-viewer&amp;gt;&lt;/code&gt; tag and script link in &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag as shown in example.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Here &lt;code&gt;&amp;lt;model-viewer&amp;gt;&lt;/code&gt; is not default tag. It imported from script with type module not text.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
It uses glTF &amp;amp; GLB extension models for rendering. &lt;em&gt;You can zoom and rotate it.&lt;/em&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/aniket_chauhan/embed/XWaxdJQ?height=600&amp;amp;default-tab=html,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Check out &lt;a href="https://modelviewer.dev"&gt;&amp;lt;model-viewer website&lt;/a&gt; for more information.&lt;/p&gt;

&lt;p&gt;Try out your glTF &amp;amp; GLB models with &lt;code&gt;&amp;lt;model-viewer&amp;gt;&lt;/code&gt; &lt;a href="https://modelviewer.dev/editor"&gt;Editor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Browser Support:&lt;/strong&gt; &lt;code&gt;&amp;lt;model-viewer&amp;gt;&lt;/code&gt; is supported on the last two major versions of all evergreen desktop and mobile browsers, plus the last two versions of Safari (on MacOS and iOS).&lt;/p&gt;

&lt;p&gt;Comment below if you have any query or suggestion. I hope you’ll find this helpful, Thanks for reading 🙂&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>augmentedreality</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Generate a CSS selector path of a DOM element.</title>
      <dc:creator>Aniket Chauhan</dc:creator>
      <pubDate>Tue, 16 Mar 2021 09:39:59 +0000</pubDate>
      <link>https://dev.to/aniket_chauhan/generate-a-css-selector-path-of-a-dom-element-4aim</link>
      <guid>https://dev.to/aniket_chauhan/generate-a-css-selector-path-of-a-dom-element-4aim</guid>
      <description>&lt;p&gt;The task is to generate a CSS selector path of DOM element by implementation of 'generateSelector' function.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; You must be aware of the basics of HTML, CSS and JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approach:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First of all, you need to create an index.html file that consists of any markup code like shown in example code.&lt;/li&gt;
&lt;li&gt;Create an app.js file that generate unique CSS selector as given below in the code.&lt;/li&gt;
&lt;li&gt;In the app.js file, when any element is clicked, it will shown in browser console and the generated selector shown on web interface.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; In this example, In order to get that selectors are unique, We will use :nth-of-type Selectors. &lt;em&gt;Click on the element to see selector&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/aniket_chauhan/embed/gOLyGja?height=600&amp;amp;default-tab=js,result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This function creates a long, but quite practical unique selector, works quickly.&lt;/p&gt;

&lt;p&gt;Comment below if you have any query. I hope you’ll find this article helpful, Thank you for reading :)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How you’re going to write JavaScript</title>
      <dc:creator>Aniket Chauhan</dc:creator>
      <pubDate>Tue, 01 Sep 2020 17:40:02 +0000</pubDate>
      <link>https://dev.to/aniket_chauhan/how-you-re-going-to-write-javascript-ch1</link>
      <guid>https://dev.to/aniket_chauhan/how-you-re-going-to-write-javascript-ch1</guid>
      <description>&lt;p&gt;JavaScript is fairly unique in the programming world. With your typical &lt;br&gt;
programming language you have to write it, compile it, link it and deploy &lt;br&gt;
it. JavaScript is much more fluid and flexible. With JavaScript all you &lt;br&gt;
need to do is write JavaScript right into your page, and then load it into a &lt;br&gt;
browser. From there, the browser will happily begin executing your code. &lt;br&gt;
Let’s take a closer look at how this works:&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing
&lt;/h2&gt;

&lt;p&gt;You create your page &lt;br&gt;
just like you always do, &lt;br&gt;
with HTML content and &lt;br&gt;
CSS style. And you also &lt;br&gt;
include JavaScript in &lt;br&gt;
your page. As you’ll see, &lt;br&gt;
just like HTML and CSS, &lt;br&gt;
you can put everything &lt;br&gt;
together in one file, or &lt;br&gt;
you can place JavaScript &lt;br&gt;
in its own file, to be &lt;br&gt;
included in your page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Loading
&lt;/h2&gt;

&lt;p&gt;Point your browser to your &lt;br&gt;
page, just as you always &lt;br&gt;
do. When the browser sees &lt;br&gt;
code, it starts parsing it &lt;br&gt;
immediately, getting ready &lt;br&gt;
to execute it. Note that &lt;br&gt;
like HTML and CSS, if the &lt;br&gt;
browser sees errors in your &lt;br&gt;
code, it will do its best to &lt;br&gt;
keep moving and reading &lt;br&gt;
more JavaScript, HTML and &lt;br&gt;
CSS. The last thing it wants &lt;br&gt;
to do is not be able to give &lt;br&gt;
the user a page to see.&lt;/p&gt;

&lt;h2&gt;
  
  
  Executing
&lt;/h2&gt;

&lt;p&gt;The browser starts &lt;br&gt;
executing your code as &lt;br&gt;
soon as it encounters it in &lt;br&gt;
your page, and continues &lt;br&gt;
executing it for the lifetime &lt;br&gt;
of your page. Unlike early &lt;br&gt;
versions of JavaScript, &lt;br&gt;
today’s JavaScript is &lt;br&gt;
a powerhouse, using &lt;br&gt;
advanced compilation &lt;br&gt;
techniques to execute &lt;br&gt;
your code at nearly the &lt;br&gt;
same speed as many native &lt;br&gt;
programming languages.&lt;br&gt;
&lt;br&gt;
I hope you’ll find this article useful,&lt;br&gt;
Thank you for reading.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
