<?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: Anoop Patel</title>
    <description>The latest articles on DEV Community by Anoop Patel (@anooppatel).</description>
    <link>https://dev.to/anooppatel</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%2F1414673%2Fde359bb0-0476-4842-857c-48b87e9986f1.jpeg</url>
      <title>DEV Community: Anoop Patel</title>
      <link>https://dev.to/anooppatel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anooppatel"/>
    <language>en</language>
    <item>
      <title>Mood Driven Theme Changer</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Wed, 20 Nov 2024 15:46:08 +0000</pubDate>
      <link>https://dev.to/anooppatel/mood-driven-theme-changer-3ddd</link>
      <guid>https://dev.to/anooppatel/mood-driven-theme-changer-3ddd</guid>
      <description>&lt;p&gt;Step by step code&lt;br&gt;
(&lt;a href="https://github.com/anooppatel12/Mood-Driven-Website-Theme-Changer" rel="noopener noreferrer"&gt;https://github.com/anooppatel12/Mood-Driven-Website-Theme-Changer&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Live Preview&lt;br&gt;
(&lt;a href="https://mood-driven-website-theme-changer.vercel.app/" rel="noopener noreferrer"&gt;https://mood-driven-website-theme-changer.vercel.app/&lt;/a&gt;)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Image To PDF Convertor</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Wed, 20 Nov 2024 15:24:21 +0000</pubDate>
      <link>https://dev.to/anooppatel/image-to-pdf-convertor-5b0e</link>
      <guid>https://dev.to/anooppatel/image-to-pdf-convertor-5b0e</guid>
      <description>&lt;p&gt;View Full Code on Github &lt;/p&gt;

&lt;p&gt;( &lt;a href="https://github.com/anooppatel12/ImgToPdf" rel="noopener noreferrer"&gt;https://github.com/anooppatel12/ImgToPdf&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;Live Preview&lt;/p&gt;

&lt;p&gt;( &lt;a href="https://img-to-pdf-omega.vercel.app/" rel="noopener noreferrer"&gt;https://img-to-pdf-omega.vercel.app/&lt;/a&gt; )&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Cursor Follower using JS</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Wed, 20 Nov 2024 12:45:59 +0000</pubDate>
      <link>https://dev.to/anooppatel/cursor-follower-using-js-3g50</link>
      <guid>https://dev.to/anooppatel/cursor-follower-using-js-3g50</guid>
      <description>&lt;h2&gt;
  
  
  Cursor follower using html, css and js
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;title&amp;gt;3D Cursor Follower&amp;lt;/title&amp;gt;
  &amp;lt;style&amp;gt;
    body {
      margin: 0;
      overflow: hidden;
      background: #000;
    }
    canvas {
      display: block;
    }
  &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;canvas id="canvas"&amp;gt;&amp;lt;/canvas&amp;gt;
  &amp;lt;script&amp;gt;
    const canvas = document.getElementById('canvas');
    const ctx = canvas.getContext('2d');

    // Set canvas to full screen
    function resizeCanvas() {
      canvas.width = window.innerWidth;
      canvas.height = window.innerHeight;
    }
    resizeCanvas();
    window.addEventListener('resize', resizeCanvas);

    // Circle object
    const circle = {
      x: canvas.width / 2,
      y: canvas.height / 2,
      size: 30,
      z: 0, // Simulated depth
      maxZ: 300, // Maximum depth
      color: '#ff0000'
    };

    // Mouse coordinates
    const mouse = {
      x: canvas.width / 2,
      y: canvas.height / 2
    };

    // Update mouse position
    window.addEventListener('mousemove', (event) =&amp;gt; {
      mouse.x = event.clientX;
      mouse.y = event.clientY;

      // Simulate depth by mapping x and y distance to z
      const distX = Math.abs(canvas.width / 2 - mouse.x);
      const distY = Math.abs(canvas.height / 2 - mouse.y);
      circle.z = Math.min(circle.maxZ, distX + distY);
    });

    function drawCircle() {
      const scale = 1 - circle.z / circle.maxZ; // Scale based on depth
      ctx.beginPath();
      ctx.arc(circle.x, circle.y, circle.size * scale, 0, Math.PI * 2);
      ctx.fillStyle = circle.color;
      ctx.fill();
      ctx.closePath();
    }

    function animate() {
      // Clear canvas
      ctx.clearRect(0, 0, canvas.width, canvas.height);

      // Move circle toward the mouse smoothly
      circle.x += (mouse.x - circle.x) * 0.1;
      circle.y += (mouse.y - circle.y) * 0.1;

      // Draw circle
      drawCircle();

      requestAnimationFrame(animate);
    }

    animate();
  &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Add Flip Card in your Project</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Wed, 20 Nov 2024 12:23:15 +0000</pubDate>
      <link>https://dev.to/anooppatel/add-flip-card-in-your-project-15no</link>
      <guid>https://dev.to/anooppatel/add-flip-card-in-your-project-15no</guid>
      <description>&lt;p&gt;Add Flip card effect in your project just copy and paste the code..&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;title&amp;gt;Flip card&amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;



  &amp;lt;!-- Projects Section --&amp;gt;
  &amp;lt;section class="projects"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
      &amp;lt;h2 class="section-title"&amp;gt;My Projects&amp;lt;/h2&amp;gt;
      &amp;lt;div class="projects-grid"&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 1"&amp;gt;
              &amp;lt;h3&amp;gt;Project One&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;A MERN stack application with real-time features and dynamic design.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 2"&amp;gt;
              &amp;lt;h3&amp;gt;Project Two&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;An Android app featuring modern UI/UX and seamless functionality.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 3"&amp;gt;
              &amp;lt;h3&amp;gt;Project Three&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;A creative portfolio showcasing animations and responsive design.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/section&amp;gt;



&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}



/* Projects Section */
.projects {
    padding: 50px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    perspective: 1000px;
    height: 200px;
}

.card-inner {
    transition: transform 0.8s;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-back {
    background: #2575fc;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>css</category>
      <category>beginners</category>
      <category>web</category>
    </item>
    <item>
      <title>Add Flip Card in your Project</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Wed, 20 Nov 2024 12:23:15 +0000</pubDate>
      <link>https://dev.to/anooppatel/add-flip-card-in-your-project-53b9</link>
      <guid>https://dev.to/anooppatel/add-flip-card-in-your-project-53b9</guid>
      <description>&lt;p&gt;Add Flip card effect in your project just copy and paste the code..&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;title&amp;gt;Flip card&amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;



  &amp;lt;!-- Projects Section --&amp;gt;
  &amp;lt;section class="projects"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
      &amp;lt;h2 class="section-title"&amp;gt;My Projects&amp;lt;/h2&amp;gt;
      &amp;lt;div class="projects-grid"&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 1"&amp;gt;
              &amp;lt;h3&amp;gt;Project One&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;A MERN stack application with real-time features and dynamic design.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 2"&amp;gt;
              &amp;lt;h3&amp;gt;Project Two&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;An Android app featuring modern UI/UX and seamless functionality.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="project-card"&amp;gt;
          &amp;lt;div class="card-inner"&amp;gt;
            &amp;lt;div class="card-front"&amp;gt;
              &amp;lt;img src="qw.jpg" alt="Project 3"&amp;gt;
              &amp;lt;h3&amp;gt;Project Three&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="card-back"&amp;gt;
              &amp;lt;p&amp;gt;A creative portfolio showcasing animations and responsive design.&amp;lt;/p&amp;gt;
              &amp;lt;a href="#" class="cta"&amp;gt;View Project&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/section&amp;gt;



&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}



/* Projects Section */
.projects {
    padding: 50px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    perspective: 1000px;
    height: 200px;
}

.card-inner {
    transition: transform 0.8s;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-back {
    background: #2575fc;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>css</category>
      <category>beginners</category>
      <category>web</category>
    </item>
    <item>
      <title>Futuristic Portfolio</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sun, 10 Nov 2024 10:39:39 +0000</pubDate>
      <link>https://dev.to/anooppatel/futuristic-portfolio-1711</link>
      <guid>https://dev.to/anooppatel/futuristic-portfolio-1711</guid>
      <description>&lt;p&gt;&lt;strong&gt;Portfolio Design For Frontend Developers&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/anooppatel12/Futurist-Portfolio" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://futurist-portfolio.vercel.app/" rel="noopener noreferrer"&gt;Live&lt;/a&gt;&lt;/p&gt;

</description>
      <category>portfolio</category>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>Add Crazy Cursor Click Effect on your website..</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sun, 10 Nov 2024 09:54:22 +0000</pubDate>
      <link>https://dev.to/anooppatel/add-crazy-cursor-click-effect-on-your-website-n65</link>
      <guid>https://dev.to/anooppatel/add-crazy-cursor-click-effect-on-your-website-n65</guid>
      <description>&lt;p&gt;&lt;strong&gt;Click And See Magic !&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/anooppatel12/Cursor-Click-Animation" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cursor-click-animation.vercel.app/" rel="noopener noreferrer"&gt;Preview&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Happy Diwali - Bomb Blast Animation&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="styles.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container" id="container"&amp;gt;Click and See Magic&amp;lt;/div&amp;gt;
    &amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #2c3e50, #4ca1af);
    height: 100vh;
    overflow: hidden;
    color: white;
    font-family: 'Arial', sans-serif;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    text-align: center; /* Center text */
    font-size: 2em; /* Increase font size */
    font-weight: bold; /* Make text bold */
    color: #ffcc00; /* Text color */
    text-shadow: 2px 2px 10px rgba(255, 255, 0, 0.8); /* Add shadow for effect */
}

.bomb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    animation: pulse 0.4s forwards;
}

.light {
    position: absolute;
    border-radius: 50%;
    animation: lightSpread 1s forwards;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes lightSpread {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JavaScript&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.addEventListener('DOMContentLoaded', () =&amp;gt; {
    const container = document.getElementById('container');

    container.addEventListener('click', (e) =&amp;gt; {
        // Create the bomb element
        const bomb = document.createElement('div');
        bomb.className = 'bomb';
        bomb.style.left = e.clientX + 'px';
        bomb.style.top = e.clientY + 'px';
        container.appendChild(bomb);

        // Create light effects
        for (let i = 0; i &amp;lt; 10; i++) {
            const light = document.createElement('div');
            light.className = 'light';
            light.style.left = e.clientX + 'px';
            light.style.top = e.clientY + 'px';
            light.style.background = `hsl(${Math.random() * 360}, 100%, 50%)`;
            light.style.width = Math.random() * 20 + 10 + 'px'; // Random width
            light.style.height = light.style.width; // Keep it circular

            // Set a random angle and distance for spreading lights
            const angle = Math.random() * 2 * Math.PI; // Random angle
            const distance = Math.random() * 200 + 50; // Random distance

            light.style.transform = `translate(${Math.cos(angle) * distance}px, ${Math.sin(angle) * distance}px)`;
            container.appendChild(light);

            // Remove the light effect after animation
            setTimeout(() =&amp;gt; {
                light.remove();
            }, 1000);
        }

        // Remove the bomb after animation
        setTimeout(() =&amp;gt; {
            bomb.remove();
        }, 400);
    });
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>animation</category>
      <category>javascript</category>
      <category>css</category>
    </item>
    <item>
      <title>How To Pass Data To Another Activity</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sun, 22 Sep 2024 10:27:49 +0000</pubDate>
      <link>https://dev.to/anooppatel/how-to-pass-data-to-another-activity-11f6</link>
      <guid>https://dev.to/anooppatel/how-to-pass-data-to-another-activity-11f6</guid>
      <description>&lt;p&gt;there are two activities &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;MainActivity.java&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SettingActivity.java&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;MainActivity.java&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; public void launchSettings(View v){

        //Launch a new activity

        Intent i = new Intent(this,SettingActivity.class);
        String message = ((EditText)findViewById(R.id.editTextText)).getText().toString();
        i.putExtra("cool", message);
        startActivity(i);
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;SettingActivity.java&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class SettingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_setting);

        Intent i = getIntent();
        String message = i.getStringExtra("cool");
        TextView t = findViewById(R.id.textview);
        t.setText(message);
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;u&gt;There are XMl Files&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;em&gt;1.activity_main.xl&lt;/em&gt;&lt;/u&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;LinearLayout
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&amp;gt;

    &amp;lt;EditText
        android:id="@+id/editTextText"
        android:layout_width="470dp"
        android:layout_height="64dp"
        android:ems="10"
        android:inputType="text"
        android:text="Name"
        tools:ignore="MissingConstraints"
        tools:layout_editor_absoluteX="7dp"
        tools:layout_editor_absoluteY="30dp" /&amp;gt;
    &amp;lt;Button
        android:id="@+id/btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="launchSettings"
        android:text="button"
        app:layout_constraintEnd_toEndOf="parent"
        tools:ignore="MissingConstraints"
        tools:layout_editor_absoluteY="125dp" /&amp;gt;
&amp;lt;/LinearLayout&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;&lt;u&gt;2.activitysetting.xml&lt;/u&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;TextView
        android:id="@+id/textview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="50sp"
        android:text="hello activity"
        android:textSize="20sp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.224"
        tools:layout_editor_absoluteX="139dp"
        tools:ignore="MissingConstraints" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>android</category>
      <category>androiddev</category>
      <category>mobile</category>
      <category>java</category>
    </item>
    <item>
      <title>Launch new Activity(Intent)</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sun, 22 Sep 2024 05:19:57 +0000</pubDate>
      <link>https://dev.to/anooppatel/launch-new-activityintent-4a4p</link>
      <guid>https://dev.to/anooppatel/launch-new-activityintent-4a4p</guid>
      <description>&lt;p&gt;&lt;strong&gt;XML file:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;Button
           android:id="@+id/btn"
           android:onClick="launchSettings"
           android:text="button"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;java file:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; public void launchSettings(View v){

        //Launch a new activity

        Intent i = new Intent(this,SettingActivity.class);
        startActivity(i);
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After adding these functionality you will be able to launch new Activity.&lt;/p&gt;

</description>
      <category>android</category>
      <category>androiddev</category>
      <category>java</category>
      <category>anooppatel</category>
    </item>
    <item>
      <title>Get Text From Input Field..</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sun, 22 Sep 2024 04:23:27 +0000</pubDate>
      <link>https://dev.to/anooppatel/get-text-from-input-field-1e1c</link>
      <guid>https://dev.to/anooppatel/get-text-from-input-field-1e1c</guid>
      <description>&lt;p&gt;&lt;strong&gt;Java Code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class MainActivity extends AppCompatActivity {

    Button btn;
    TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btn = findViewById(R.id.btn);
        textView = findViewById(R.id.editText);

        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                String input = textView.getText().toString().trim();
                TextView text = findViewById(R.id.result);
                text.setText(input);
                Log.d("View", input);
            }
        });
    }

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>androiddev</category>
      <category>android</category>
      <category>java</category>
      <category>anooppatel</category>
    </item>
    <item>
      <title>Disable buttons and change the text of all buttons..</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sat, 21 Sep 2024 14:05:20 +0000</pubDate>
      <link>https://dev.to/anooppatel/disable-buttons-and-change-the-text-of-all-buttons-40g8</link>
      <guid>https://dev.to/anooppatel/disable-buttons-and-change-the-text-of-all-buttons-40g8</guid>
      <description>&lt;p&gt;&lt;strong&gt;change button text&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; public void disable(View v){
        v.setEnabled(false);
        Button button = (Button) v;
        button.setText("Disabled");
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>android</category>
      <category>java</category>
      <category>androiddev</category>
      <category>mobile</category>
    </item>
    <item>
      <title>How to Disable Button in Android Studio</title>
      <dc:creator>Anoop Patel</dc:creator>
      <pubDate>Sat, 21 Sep 2024 13:30:26 +0000</pubDate>
      <link>https://dev.to/anooppatel/how-to-disable-button-in-android-studio-5fbm</link>
      <guid>https://dev.to/anooppatel/how-to-disable-button-in-android-studio-5fbm</guid>
      <description>&lt;p&gt;*&lt;em&gt;First Way: *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                view.setEnabled(false);
            }
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Second way:&lt;/strong&gt; &lt;em&gt;Without setOnClickListner&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; public void disable(View v){
        v.setEnabled(false);
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;*&lt;em&gt;XMl code file: *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;Button
        android:id="@+id/button"
        android:onClick="disable"
        android:layout_margin="8dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="button" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>androiddev</category>
      <category>mobile</category>
      <category>java</category>
      <category>anooppatel</category>
    </item>
  </channel>
</rss>
