<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by omprakash on Medium]]></title>
        <description><![CDATA[Stories by omprakash on Medium]]></description>
        <link>https://medium.com/@chauhanomprakash7206?source=rss-54751825f64e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YBRr91Fqi9-QgyTaSzFMiw.png</url>
            <title>Stories by omprakash on Medium</title>
            <link>https://medium.com/@chauhanomprakash7206?source=rss-54751825f64e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 12:38:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chauhanomprakash7206/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Tried “Vibe Coding” for the First Time — Here’s GitGlow, What I Built and What I Learned]]></title>
            <link>https://medium.com/@chauhanomprakash7206/i-tried-vibe-coding-for-the-first-time-heres-gitglow-what-i-built-and-what-i-learned-03ef35048b71?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/03ef35048b71</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 13:16:39 GMT</pubDate>
            <atom:updated>2026-07-27T13:16:39.007Z</atom:updated>
            <content:encoded><![CDATA[<p>A GitHub profile analyzer built with modern AI-assisted development, where I focused on product design, architecture, and problem-solving instead of writing every line manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lLy9A8MCKzFCiRB8kYylg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8GUXoTOgwUjJuAt5ujK4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekmd9wa53Tlj6uy-TorkSA.png" /></figure><p>A few weeks ago, I decided to try something I’d been hearing a lot about lately: <strong>vibe coding</strong>.</p><p>Instead of spending hours writing every line of code myself, I focused on defining the product, designing the features, and iterating quickly using AI-assisted development. I wanted to see how far clear thinking, good prompts, and solid engineering decisions could take a project from idea to production.</p><p>The result is <strong>GitGlow</strong>: a visual GitHub profile analyzer that transforms any public GitHub profile into an interactive dashboard.</p><p>🔗 <strong>Try it here:</strong> <a href="https://git-glow-three.vercel.app/">https://git-glow-three.vercel.app/</a></p><h3>What GitGlow Does</h3><p>Simply enter a GitHub username or profile URL, and GitGlow analyzes the profile in real time.</p><p>It provides:</p><ul><li>🔥 <strong>Contribution streaks</strong>: Current streak and longest streak</li><li>💻 <strong>Language breakdown</strong>: A donut chart showing your actual programming languages based on code volume, not just repository count</li><li>📈 <strong>Language trends</strong>: See how your technology stack has evolved over the years</li><li>🕐 <strong>Best coding time</strong>: A commit heatmap that identifies whether you’re a night owl, an early bird, a 9-to-5 coder, or a weekend warrior</li><li>✅ <strong>Repository health score</strong>: Every repository receives a score based on activity, documentation, licensing, and issue tracking</li><li>🏢 <strong>Personal vs Organization contributions</strong>: Visualize how much of your work comes from personal projects versus organizations</li><li>🆚 <strong>Profile comparison</strong>: Compare two GitHub profiles side by side</li><li>🎴 <strong>Developer card</strong>: Generate a shareable profile card for social media or your README</li><li>🧠 <strong>Coding summary</strong>: A natural-language overview of your coding style generated from your GitHub activity</li></ul><p>Everything is fetched live from GitHub’s APIs. Nothing is stored. No accounts, no database, and no tracking. Just enter a username and explore the data.</p><h3>Why I Built It</h3><p>I wanted to build something developers would actually enjoy using instead of another portfolio project that sits on GitHub unnoticed.</p><p>GitHub profiles contain an incredible amount of information, but most of it is scattered across repositories, contribution graphs, and statistics.</p><p>I wanted to bring all of that into a single dashboard that’s clean, visual, and fun to explore.</p><p>The profile comparison feature came from a simple idea: developers naturally compare their progress with friends, teammates, and open-source contributors. Making those comparisons visual makes the experience much more engaging.</p><h3>What I Learned About Vibe Coding</h3><h3>1. The hardest part isn’t coding anymore.</h3><p>The real challenge becomes knowing exactly what you want to build.</p><p>Clear requirements produce great results. Vague prompts produce vague implementations.</p><p>Thinking through user experience, edge cases, data flow, and expected behavior became more important than remembering syntax.</p><h3>2. Faster iteration changes how you build.</h3><p>Since implementing ideas became much faster, I experimented with features I normally wouldn’t have attempted.</p><p>The commit heatmap, developer card, and repository health scoring all started as experiments that ended up becoming core features.</p><p>When experimentation becomes inexpensive, creativity increases.</p><h3>3. Engineering still matters.</h3><p>AI can generate code.</p><p>It can’t decide what your product should do.</p><p>I still needed to think about GitHub API rate limits, caching strategies, fallback behavior, score calculations, performance, and keeping the application completely stateless.</p><p>The implementation became easier.</p><p>The product decisions were still mine.</p><h3>4. Shipping is better than waiting for perfection.</h3><p>It’s always tempting to keep adding one more feature.</p><p>Eventually I deployed GitGlow, shared it publicly, and started collecting feedback.</p><p>Real users teach you far more than another week of polishing ever will.</p><h3>Tech Stack</h3><ul><li>Next.js (App Router)</li><li>TypeScript</li><li>Tailwind CSS</li><li>shadcn/ui</li><li>Recharts</li><li>GitHub REST API</li><li>GitHub GraphQL API</li><li>Gemini API (optional AI-generated summaries with a graceful fallback)</li><li>Vercel</li></ul><p>No backend database.</p><p>No authentication.</p><p>Everything is rendered on demand using live GitHub data.</p><h3>What’s Next</h3><p>Here are a few features I’m planning to add:</p><ul><li>📅 GitHub-style contribution calendar</li><li>📌 Better support for pinned repositories</li><li>🏆 Optional public leaderboard</li><li>⚡ Improved loading skeletons and empty states</li><li>📊 More developer insights and visual analytics</li></ul><h3>I’d Love Your Feedback</h3><p>This is my first project built using this development approach, and I’d genuinely appreciate your thoughts.</p><p>What features would you add?</p><p>What’s missing?</p><p>What could make GitGlow even more useful for developers?</p><p>Try it with your own GitHub profile and let me know whether it correctly identifies your coding habits.</p><p>🔗 <a href="https://git-glow-three.vercel.app/">https://git-glow-three.vercel.app/</a></p><p>If you’re experimenting with vibe coding or building developer tools yourself, I’d love to hear about your experience. Let’s discuss it in the comments.</p><p>If you enjoyed this project, consider sharing it with other developers who might find it useful. Every bit of feedback helps improve the next version.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03ef35048b71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Hack Club Summer of Making 2025: Code, Create & Win Prizes!]]></title>
            <link>https://medium.com/@chauhanomprakash7206/hack-club-summer-of-making-2025-code-create-win-prizes-78abca1b76c7?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/78abca1b76c7</guid>
            <category><![CDATA[prizes]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 11:23:50 GMT</pubDate>
            <atom:updated>2025-06-17T11:23:50.409Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you a high school student (or know someone who is) who loves building cool things with code? Or maybe you’re someone who wants to support teens in tech and get rewarded for it? Either way, <strong>Hack Club’s Summer of Making 2025</strong> is the perfect opportunity to unleash creativity, build amazing projects, and even <strong>win awesome prizes</strong> — all for free.</p><blockquote><em>🔗 Join Now: </em><a href="https://summer.hack.club/bdh">https://summer.hack.club/bdh</a><em><br> 🔁 Refer &amp; earn prizes: </em><a href="https://athena.hack.club/bdh"><em>pyramid.hackclub.com</em></a></blockquote><h3>🌟 What is the Summer of Making?</h3><p>The <strong>Summer of Making</strong> is an annual global initiative by <strong>Hack Club</strong> — a community of high school hackers and builders — to support young makers in creating real-world tech projects. Whether you’re building websites, robots, games, or hardware hacks, you can get <strong>funding, mentorship, and prizes</strong> for your work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLhdzrtWKGv--BEity6YkA.png" /></figure><p>It’s not a competition — it’s a celebration of <strong>youth creativity</strong> and <strong>open-source building</strong>.</p><h3>🎁 How Do You Win Prizes?</h3><p>There are <strong>two paths</strong> to earning awesome rewards like hardware kits, tech swag, and exclusive Hack Club merchandise:</p><h3>1. 👩‍💻 Build Something Cool (Ages ≤18)</h3><ul><li>Head to <a href="https://summer.hackclub.com/">summer.hackclub.com</a></li><li>Sign up and start building a coding or hardware project</li><li>Submit your project for a chance to get free hardware or gift boxes!</li></ul><h3>2. 🔗 Refer Friends (All Ages Can Do This!)</h3><ul><li>Go to <a href="https://pyramid.hackclub.com/">pyramid.hackclub.com</a> and log in with GitHub</li><li>You’ll get a unique referral link + poster generator</li><li>Earn <strong>3 tickets per sign-up</strong>, <strong>1 ticket per poster</strong>, and <strong>3 bonus tickets per poster sign-up</strong></li><li>The more tickets, the more chances to win epic prizes!</li></ul><blockquote><em>✅ Tip: Share your referral link on social media, in Discord servers, school groups, or put up posters in libraries and cafes.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*sgxDs-giPPl3aBHYl_azKQ.png" /></figure><h3>📍 Real Examples of How to Earn Tickets</h3><ul><li>Put posters with your QR code in public spaces like:</li><li>🏫 Schools</li><li>☕ Coffee shops</li><li>📚 Libraries</li><li>🛒 Grocery stores</li><li>Share your unique link online:</li><li>💬 Group chats</li><li>🧵 Threads on Twitter/X</li><li>📌 Discord statuses</li><li>📲 WhatsApp/Telegram/Facebook</li></ul><p>You can track your referral progress in real time through your <strong>Pyramid dashboard</strong>.</p><h3>🌍 Global Program, Free Shipping!</h3><ul><li>Prizes ship from Hack Club HQ in <strong>Vermont, USA</strong></li><li><strong>Free international shipping</strong> is covered!</li><li>You’re only responsible for any customs fees (if applicable in your country)</li></ul><h3>🧠 Why You Should Join or Share</h3><ul><li>Build your <strong>portfolio</strong> with real projects</li><li>Gain experience with <strong>open source</strong> and real tech tools</li><li>Win <strong>hardware kits</strong> and other fun prizes</li><li>Be part of a <strong>global community of teenage makers</strong></li><li>Help other teens discover tech &amp; get rewarded for spreading the word!</li></ul><h3>🏁 Let’s Make This Summer Count!</h3><p>Whether you’re hacking together a hardware project, building a personal app, or simply helping others discover this incredible opportunity, the <strong>Hack Club Summer of Making 2025</strong> is something you won’t want to miss.</p><p>👉 <strong>Join or Refer Now</strong>:<br> 🔗 <a href="https://summer.hackclub.com/">summer.hackclub.com</a><br> 🔁 Referral portal: <a href="https://pyramid.hackclub.com/">pyramid.hackclub.com</a></p><p>Let’s make, learn, and share together this summer. Who knows — your next big project might just start here!</p><h3>🙌 PS: Use My Link to Join &amp; Help Me Earn Tickets!</h3><p>[Insert your unique referral link here]</p><p>Thanks for supporting and spreading the word! 💙</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78abca1b76c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Build Your Own AI Agent Using Gemini API — No Rocket Science Required]]></title>
            <link>https://medium.com/@chauhanomprakash7206/build-your-own-ai-agent-using-gemini-api-no-rocket-science-required-5cf01837fed0?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cf01837fed0</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 05:59:18 GMT</pubDate>
            <atom:updated>2025-04-26T05:59:18.601Z</atom:updated>
            <content:encoded><![CDATA[<h3>🤖 Build Your Own AI Agent Using Gemini API — No Rocket Science Required</h3><p>Have you ever wanted to build your own AI agent that can talk, think, and even help you write code or answer emails? With Google’s Gemini API, this is not only possible — it’s surprisingly simple.</p><p>In this post, I’ll walk you through how to create your own AI agent using the Gemini API. Whether you’re a developer or a curious tinkerer, you’ll be up and running in no time. No PhD in AI required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTiyI7VWvnfRE4iNlmZzSQ.png" /></figure><h3>🌟 What’s an AI Agent Anyway?</h3><p>An AI agent is like your digital assistant. It can take instructions, reason through them, and return a meaningful response. Think of it like ChatGPT, but you control the code, behavior, and even the personality.</p><p>By using Google’s <strong>Gemini API</strong> (formerly Bard), you get access to a powerful large language model that can power up your custom tools, bots, or assistants.</p><h3>🧰 What You’ll Need</h3><ul><li>A <strong>Google Cloud account</strong></li><li>A <strong>Gemini API key</strong> (free tier available!)</li><li>Basic knowledge of <strong>JavaScript or Python</strong></li><li>Curiosity 😄</li></ul><h3>🔑 Step 1: Get Your Gemini API Key</h3><ol><li>Go to Google AI Studio.</li><li>Sign in with your Google account.</li><li>Go to <strong>API Keys</strong>, and generate a new key.</li><li>Copy it and keep it safe — you’ll need it for your project</li></ol><h3>⚙️ Step 2: Set Up Your Project</h3><p>Let’s go with <strong>Node.js</strong> for this example, but you can use Python too.</p><pre>mkdir my-ai-agent<br>cd my-ai-agent<br>npm init -y<br>npm install @google/generative-ai dotenv</pre><p>Now, create a .env file to store your API key:</p><pre>GEMINI_API_KEY=your_api_key_here</pre><h3>🧠 Step 3: Create the AI Agent Logic</h3><p>Here’s a simple script (index.js) to get you started:</p><pre>require(&#39;dotenv&#39;).config();<br>const genAI = require(&#39;@google/generative-ai&#39;);<br><br>const apiKey = process.env.GEMINI_API_KEY;<br>const genAIClient = new genAI.GoogleGenerativeAI(apiKey);<br><br>async function runAgent(userPrompt) {<br>  const model = genAIClient.getGenerativeModel({ model: &#39;gemini-pro&#39; });<br><br>  const result = await model.generateContent(userPrompt);<br>  const response = result.response;<br><br>  console.log(&#39;🤖 AI says:&#39;, response.text());<br>}<br><br>runAgent(&quot;What are some unique startup ideas for 2025?&quot;);</pre><p>Just run this file using:</p><pre>node index.js</pre><p>You’ll see a response from the Gemini AI model. Boom 💥 — your AI agent just spoke!</p><h3>🔁 Step 4: Make It Interactive (Optional but Fun)</h3><p>Want to have a real-time convo with your AI agent? Use Node’s readline:</p><pre>const readline = require(&#39;readline&#39;);<br><br>const rl = readline.createInterface({<br>  input: process.stdin,<br>  output: process.stdout,<br>});<br><br>async function askQuestion() {<br>  rl.question(&quot;You: &quot;, async (input) =&gt; {<br>    await runAgent(input);<br>    askQuestion(); // Loop<br>  });<br>}<br><br>askQuestion();</pre><p>Now you’re chatting with your own AI assistant, right from the terminal.</p><h3>🌐 Use Cases: Where Can You Take This?</h3><ul><li><strong>Custom chatbots</strong> for your website</li><li><strong>AI writing assistants</strong> for blogs or emails</li><li><strong>Task planners</strong>, <strong>code generators</strong>, even <strong>mental health companions</strong></li></ul><p>You’re only limited by your creativity.</p><h3>🔒 Tips for Using the API Responsibly</h3><ul><li>Don’t share your API key publicly.</li><li>Respect user privacy if you’re building a tool for others.</li><li>Keep token usage and quotas in check (especially on free plans).</li></ul><h3>🚀 Final Thoughts</h3><p>Building your own AI agent used to be a dream for sci-fi fans. Now, with tools like Gemini, it’s as easy as writing a few lines of JavaScript.</p><p>Whether you’re building the next productivity app or just want a fun side project, this is a great way to dive into the future of AI.</p><p>Got questions? Drop them in the comments or hit me up on X/Twitter <a href="http://twitter.com/Scripticx">@</a>omprakash29_ . Happy building!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf01837fed0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I'm excited to announce that I'm creating my first GSAP Snippets Extension for VS Code!]]></title>
            <link>https://medium.com/@chauhanomprakash7206/im-excited-to-announce-that-i-m-creating-my-first-gsap-snippets-extension-for-vs-code-f340fd0103a5?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f340fd0103a5</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 07:01:29 GMT</pubDate>
            <atom:updated>2024-09-27T07:01:29.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there! As a developer, creating animations with the <strong>GreenSock Animation Platform (GSAP)</strong> can sometimes feel repetitive. That&#39;s why I created the <strong>GSAP Snippets Extension</strong> for <strong>VS Code</strong>. It&#39;s designed to make GSAP development a breeze by providing quick code suggestions for commonly used GSAP methods like tweens, timelines, etc. Happy coding!</p><p>In this blog, I will guide you through <strong>the process of creating this extension</strong> and <strong>explain how it can benefit you as a developer</strong> using GSAP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdkJjQ63D_Z1v8_xb8LoNA.gif" /></figure><h3>Why I Created the GSAP Snippets Extension</h3><p>GSAP is incredibly powerful for animations, but as with any tool, the more features it has, the more code you end up writing. I found myself typing the same lines of GSAP code over and over again:</p><ul><li>Setting up animations with gsap.to() or gsap.from().</li><li>Creating complex timelines.</li><li>Adding scroll-based animations using <strong>ScrollTrigger</strong>.</li></ul><p>I thought, <em>why not create an extension that will let me type just a few letters and instantly get a suggestion for the full GSAP method?</em></p><p>That’s exactly what I did, and the result was the <strong>GSAP Snippets Extension</strong>.</p><p><strong><em>You visit Vs Code MarketPlace Here:</em></strong> <a href="https://marketplace.visualstudio.com/items?itemName=omprakash.gsap-snippet">https://marketplace.visualstudio.com/items?itemName=omprakash.gsap-snippet</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiwoCrkV626zvJFOt1oizg.png" /></figure><h3>Benefits of Using the GSAP Snippets Extension</h3><p>Here are a few reasons why you should consider using the GSAP Snippets extension if you’re working with GSAP in VS Code.</p><h4>1. Save Time</h4><p>By providing shortcuts for commonly used GSAP methods, the extension helps you write animation code faster. For example, instead of typing out an entire gsap.timeline(), you can type gstl and let the extension auto-complete it for you.</p><h4>2. Reduce Typos</h4><p>One of the most frustrating things when coding animations is making small typos that break your animation. Using snippets ensures you get the syntax right every time, reducing bugs and improving productivity.</p><h4>3. Learn GSAP Faster</h4><p>If you’re new to GSAP, these snippets can help you learn the correct syntax by providing you with working examples as suggestions. You can also explore new GSAP features, like <strong>ScrollTrigger</strong>, through the suggestions that the extension provides.</p><h4>4. Focus on Creativity</h4><p>With the repetitive tasks out of the way, you can focus more on the creative part of animation. You spend less time typing boilerplate code and more time experimenting with easing, timelines, and triggers.</p><h3>Snippets Included in the Extension</h3><p>Here’s a list of some of the most useful snippets included in the <strong>GSAP Snippets Extension</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*gNcKXQJ33PShLZPkf0sXIA.png" /></figure><h3>Final Thoughts</h3><p>The <strong>GSAP Snippets Extension</strong> has made my workflow smoother and faster, and I believe it can do the same for you. If you’re tired of writing the same GSAP code over and over, or if you want to avoid syntax errors while creating animations, this extension will be a great addition to your toolkit.</p><p>It’s free, easy to install, and available on the <strong>Visual Studio Code Marketplace</strong>. Whether you’re a beginner or an experienced developer, this extension will help you focus more on creativity and less on typing repetitive code.</p><h3>Download the Extension</h3><p>You can download the <strong>GSAP Snippets Extension</strong> from the VS Code Marketplace <a href="https://marketplace.visualstudio.com/items?itemName=omprakash.gsap-snippet">here</a>. Give it a try and let me know what you think!</p><p>I hope this blog was helpful in showing you the process behind creating the extension and why it can be a valuable tool for GSAP users. Feel free to reach out if you have any questions or suggestions!</p><p>Happy animating with GSAP! 🎉</p><blockquote>This version is designed to explain the process and benefits clearly, while being easy for readers to follow, even if they’re new to extension development or GSAP itself.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f340fd0103a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Colorful Fluid Animations with HTML and CSS: A Step-by-Step Guide”]]></title>
            <link>https://medium.com/@chauhanomprakash7206/creating-colorful-fluid-animations-with-html-and-css-a-step-by-step-guide-71b2731c71a6?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/71b2731c71a6</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Thu, 18 Jul 2024 15:04:30 GMT</pubDate>
            <atom:updated>2024-07-18T15:04:30.738Z</atom:updated>
            <content:encoded><![CDATA[<p>Use HTML and CSS to add beautiful colors and watermarks that respond to mouse movements to your website. In this blog post, we’ll walk you through the process step-by-step, using simple terms and easy-to-follow instructions. By the end, you’ll be able to create engaging graphics that enhance your users’ experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*fEdeCa7rjPMC555UiJ63nQ.gif" /></figure><blockquote>Visited my portfolio for more info: <a href="https://asmrdev.tech/">asmrdev.tech</a></blockquote><h3>Step 1: Set Up Your HTML</h3><p>First, let’s create a basic HTML structure. Open your text editor and create a new HTML file. Add the following code to set up the structure:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en-US&quot;&gt;<br><br>&lt;head&gt;<br><br>  &lt;!-- Required meta tags --&gt;<br>  &lt;meta charset=&quot;utf-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;<br>  &lt;title&gt;Portfolio&lt;/title&gt;<br><br>  &lt;script&gt;<br>    window.ga = window.ga || function() {<br>      (ga.q = ga.q || []).push(arguments)<br>    };<br>    ga.l = +new Date;<br>    ga(&#39;create&#39;, &#39;UA-105392568-1&#39;, &#39;auto&#39;);<br>    ga(&#39;send&#39;, &#39;pageview&#39;);<br>  &lt;/script&gt;<br><br>&lt;/head&gt;<br><br>&lt;body&gt;<br><br>  &lt;div class=&quot;theBall-outer&quot;&gt;<br>    &lt;div class=&quot;theBall&quot;&gt;&lt;/div&gt;<br>  &lt;/div&gt;<br>  &lt;div id=&quot;page&quot; class=&quot;site&quot;&gt;<br>    &lt;canvas class=&quot;banner_canvas&quot; id=&quot;canvas_banner&quot;&gt;&lt;/canvas&gt;<br><br>    &lt;div class=&quot;top-title wow fadeInUp&quot; onmousemove=&quot;color_hover(event)&quot;&gt;<br>      &lt;div class=&quot;row&quot;&gt;<br>        &lt;div class=&quot;col-lg-6&quot;&gt;<br>          &lt;h6&gt;Portfolio&lt;/h6&gt;<br>          &lt;h1&gt;Our Creative &lt;span class=&quot;line-Bottom&quot;&gt; Space&lt;/span&gt;&lt;/h1&gt;<br>        &lt;/div&gt;<br>        &lt;div class=&quot;col-lg-6&quot;&gt;<br>          &lt;p&gt;Creating an identity and unique experience is what our forte. We strive to create a unique experience through design concepts graphics and service design.&lt;/p&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br><br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><h3>Step 2: Style with CSS</h3><p>Next, we’ll add some CSS to style our circle and make it colorful. Create a new file called styles.css and add the following code:</p><pre>/*---------------------------------------------------------------------<br>                        Mouse cursor<br>-----------------------------------------------------------------------*/<br>.theBall,<br>.theBall-outer {<br>  width: 20px;<br>  height: 20px;<br>}<br>.theBall-outer {<br>  position: fixed;<br>  top: -20px;<br>  left: -20px;<br>  z-index: 9999999999999999999;<br>  pointer-events: none !important;<br>}<br>.theBall {<br>  position: absolute;<br>  background-color: rgba(255, 114, 114, 0.8);<br>  border-radius: 50%;<br>  -webkit-transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);<br>  -moz-transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);<br>  -ms-transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);<br>  -o-transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);<br>  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);<br>  transform-origin: center center;<br>}<br>.zooming.theBall {<br>  background-color: #ff7272;<br>  -webkit-transform: scale(2);<br>  -moz-transform: scale(2);<br>  -ms-transform: scale(2);<br>  -o-transform: scale(2);<br>  transform: scale(2);<br>}<br><br>/*---------------------------------------------------------------------<br>                        Mouse Effect<br>-----------------------------------------------------------------------*/<br>.mouse-move {<br>  position: absolute;<br>  bottom: -130px;<br>  left: 50%;<br>  width: 65px;<br>  margin-left: -50px;<br>}<br>.mouse-move a {<br>  letter-spacing: 2px;<br>  font-size: 12px;<br>  text-transform: uppercase;<br>  height: 65px;<br>  width: 65px;<br>  line-height: 65px;<br>  display: inline-block;<br>  border-radius: 900px;<br>  text-align: center;<br>}<br>.mouse-move .boom::before,<br>.mouse-move .boom::after {<br>  position: absolute;<br>  top: 0;<br>  bottom: 0;<br>  left: 0;<br>  right: 0;<br>}<br>.mouse-move .boom::before,<br>.mouse-move .boom::after {<br>  content: &quot;&quot;;<br>  z-index: -1;<br>  margin: 0;<br>  border-radius: 900px;<br>  box-shadow: inset 0 0 0 2px;<br>  animation: clipMe 8s linear infinite;<br>}<br>.mouse-move .boom::before {<br>  animation-delay: -4s;<br>}<br>@keyframes clipMe {<br>  0%,<br>  100% {<br>    clip: rect(0px, 220px, 2px, 0px);<br>  }<br>  25% {<br>    clip: rect(0px, 2px, 220px, 0px);<br>  }<br>  50% {<br>    clip: rect(218px, 220px, 220px, 0px);<br>  }<br>  75% {<br>    clip: rect(0px, 220px, 220px, 218px);<br>  }<br>}<br>.banner_canvas {<br>  position: fixed;<br>  top: 0;<br>  left: 0;<br>  height: 100%;<br>  width: 100%;<br>}</pre><h3>Step 3: Add JavaScript for Mouse Movement</h3><p>To make our circle move with the mouse, we’ll use JavaScript. Create a new file called script.js and add the following code:</p><pre><br><br><br>&quot;use strict&quot;;<br><br>const canvas = document.getElementsByTagName(&quot;canvas&quot;)[0];<br>canvas.width = canvas.clientWidth;<br>canvas.height = canvas.clientHeight;<br><br>let config = {<br>  SIM_RESOLUTION: 128,<br>  DYE_RESOLUTION: 512,<br>  DENSITY_DISSIPATION: 0.97,<br>  VELOCITY_DISSIPATION: 0.98,<br>  PRESSURE_DISSIPATION: 0.8,<br>  PRESSURE_ITERATIONS: 20,<br>  CURL: 30,<br>  SPLAT_RADIUS: 0.5,<br>  SHADING: false,<br>  COLORFUL: false,<br>  PAUSED: false,<br>  BACK_COLOR: {<br>    r: 2,<br>    g: 3,<br>    b: 15<br>  },<br>  TRANSPARENT: false,<br>  BLOOM: true,<br>  BLOOM_ITERATIONS: 8,<br>  BLOOM_RESOLUTION: 256,<br>  BLOOM_INTENSITY: 0.8,<br>  BLOOM_THRESHOLD: 0.6,<br>  BLOOM_SOFT_KNEE: 0.7<br>};<br><br>function color_hover(e) {<br>  pointers[0].down = true;<br>  pointers[0].color = generateColor();<br>  pointers[0].moved = pointers[0].down;<br>  pointers[0].dx = (e.clientX - pointers[0].x) * 5.0;<br>  pointers[0].dy = (e.clientY - pointers[0].y) * 5.0;<br>  pointers[0].x = e.clientX;<br>  pointers[0].y = e.clientY;<br>}<br><br>function color_hover_with_XY(e, X, Y, speed) {<br>  speed = speed || 50;<br>  var i = 0;<br>  while (i != speed) {<br>    pointers[0].down = true;<br>    pointers[0].color = generateColor();<br>    pointers[0].moved = pointers[0].down;<br>    pointers[0].dx = (e.clientX + X - pointers[0].x) * 5.0;<br>    pointers[0].dy = (e.clientY + Y - pointers[0].y) * 5.0;<br>    pointers[0].x = e.clientX + X;<br>    pointers[0].y = e.clientY + Y;<br>    i++;<br>  }<br>}<br><br>function pointerPrototype() {<br>  this.id = -1;<br>  this.x = 0;<br>  this.y = 0;<br>  this.dx = 0;<br>  this.dy = 0;<br>  this.down = false;<br>  this.moved = false;<br>  this.color = [30, 0, 300];<br>}<br><br>let pointers = [];<br>let splatStack = [];<br>let bloomFramebuffers = [];<br>pointers.push(new pointerPrototype());<br><br>const { gl, ext } = getWebGLContext(canvas);<br><br>if (isMobile()) config.SHADING = false;<br>if (!ext.supportLinearFiltering) {<br>  config.SHADING = false;<br>  config.BLOOM = false;<br>}<br><br>//startGUI();<br><br>function getWebGLContext(canvas) {<br>  const params = {<br>    alpha: true,<br>    depth: false,<br>    stencil: false,<br>    antialias: false,<br>    preserveDrawingBuffer: false<br>  };<br><br>  let gl = canvas.getContext(&quot;webgl2&quot;, params);<br>  const isWebGL2 = !!gl;<br>  if (!isWebGL2)<br>    gl =<br>      canvas.getContext(&quot;webgl&quot;, params) ||<br>      canvas.getContext(&quot;experimental-webgl&quot;, params);<br><br>  let halfFloat;<br>  let supportLinearFiltering;<br>  if (isWebGL2) {<br>    gl.getExtension(&quot;EXT_color_buffer_float&quot;);<br>    supportLinearFiltering = gl.getExtension(&quot;OES_texture_float_linear&quot;);<br>  } else {<br>    halfFloat = gl.getExtension(&quot;OES_texture_half_float&quot;);<br>    supportLinearFiltering = gl.getExtension(&quot;OES_texture_half_float_linear&quot;);<br>  }<br><br>  gl.clearColor(0.0, 0.0, 0.0, 1.0);<br><br>  const halfFloatTexType = isWebGL2 ? gl.HALF_FLOAT : halfFloat.HALF_FLOAT_OES;<br>  let formatRGBA;<br>  let formatRG;<br>  let formatR;<br><br>  if (isWebGL2) {<br>    formatRGBA = getSupportedFormat(gl, gl.RGBA16F, gl.RGBA, halfFloatTexType);<br>    formatRG = getSupportedFormat(gl, gl.RG16F, gl.RG, halfFloatTexType);<br>    formatR = getSupportedFormat(gl, gl.R16F, gl.RED, halfFloatTexType);<br>  } else {<br>    formatRGBA = getSupportedFormat(gl, gl.RGBA, gl.RGBA, halfFloatTexType);<br>    formatRG = getSupportedFormat(gl, gl.RGBA, gl.RGBA, halfFloatTexType);<br>    formatR = getSupportedFormat(gl, gl.RGBA, gl.RGBA, halfFloatTexType);<br>  }<br><br>  if (formatRGBA == null)<br>    ga(&quot;send&quot;, &quot;event&quot;, isWebGL2 ? &quot;webgl2&quot; : &quot;webgl&quot;, &quot;not supported&quot;);<br>  else ga(&quot;send&quot;, &quot;event&quot;, isWebGL2 ? &quot;webgl2&quot; : &quot;webgl&quot;, &quot;supported&quot;);<br><br>  return {<br>    gl,<br>    ext: {<br>      formatRGBA,<br>      formatRG,<br>      formatR,<br>      halfFloatTexType,<br>      supportLinearFiltering<br>    }<br>  };<br>}<br><br>function getSupportedFormat(gl, internalFormat, format, type) {<br>  if (!supportRenderTextureFormat(gl, internalFormat, format, type)) {<br>    switch (internalFormat) {<br>      case gl.R16F:<br>        return getSupportedFormat(gl, gl.RG16F, gl.RG, type);<br>      case gl.RG16F:<br>        return getSupportedFormat(gl, gl.RGBA16F, gl.RGBA, type);<br>      default:<br>        return null;<br>    }<br>  }<br><br>  return {<br>    internalFormat,<br>    format<br>  };<br>}<br><br>function supportRenderTextureFormat(gl, internalFormat, format, type) {<br>  let texture = gl.createTexture();<br>  gl.bindTexture(gl.TEXTURE_2D, texture);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);<br>  gl.texImage2D(gl.TEXTURE_2D, 0, internalFormat, 4, 4, 0, format, type, null);<br><br>  let fbo = gl.createFramebuffer();<br>  gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);<br>  gl.framebufferTexture2D(<br>    gl.FRAMEBUFFER,<br>    gl.COLOR_ATTACHMENT0,<br>    gl.TEXTURE_2D,<br>    texture,<br>    0<br>  );<br><br>  const status = gl.checkFramebufferStatus(gl.FRAMEBUFFER);<br>  if (status != gl.FRAMEBUFFER_COMPLETE) return false;<br>  return true;<br>}<br><br>function startGUI() {<br>  var gui = new dat.GUI({<br>    width: 300<br>  });<br>  gui<br>    .add(config, &quot;SIM_RESOLUTION&quot;, {<br>      &quot;32&quot;: 32,<br>      &quot;64&quot;: 64,<br>      &quot;128&quot;: 128,<br>      &quot;256&quot;: 256<br>    })<br>    .name(&quot;sim resolution&quot;)<br>    .onFinishChange(initFramebuffers);<br>  gui<br>    .add(config, &quot;DYE_RESOLUTION&quot;, {<br>      &quot;128&quot;: 128,<br>      &quot;256&quot;: 256,<br>      &quot;512&quot;: 512,<br>      &quot;1024&quot;: 1024<br>    })<br>    .name(&quot;dye resolution&quot;)<br>    .onFinishChange(initFramebuffers);<br>  gui.add(config, &quot;DENSITY_DISSIPATION&quot;, 0.9, 1.0).name(&quot;density diffusion&quot;);<br>  gui.add(config, &quot;VELOCITY_DISSIPATION&quot;, 0.9, 1.0).name(&quot;velocity diffusion&quot;);<br>  gui.add(config, &quot;PRESSURE_DISSIPATION&quot;, 0.0, 1.0).name(&quot;pressure diffusion&quot;);<br>  gui.add(config, &quot;CURL&quot;, 0, 50).name(&quot;vorticity&quot;).step(1);<br>  gui.add(config, &quot;SPLAT_RADIUS&quot;, 0.01, 1.0).name(&quot;splat radius&quot;);<br>  gui.add(config, &quot;SHADING&quot;).name(&quot;shading&quot;);<br>  gui.add(config, &quot;COLORFUL&quot;).name(&quot;colorful&quot;);<br>  gui.add(config, &quot;PAUSED&quot;).name(&quot;paused&quot;).listen();<br><br>  gui<br>    .add(<br>      {<br>        fun: () =&gt; {<br>          splatStack.push(parseInt(Math.random() * 20) + 5);<br>        }<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;Random splats&quot;);<br><br>  let bloomFolder = gui.addFolder(&quot;Bloom&quot;);<br>  bloomFolder.add(config, &quot;BLOOM&quot;).name(&quot;enabled&quot;);<br>  bloomFolder.add(config, &quot;BLOOM_INTENSITY&quot;, 0.1, 2.0).name(&quot;intensity&quot;);<br>  bloomFolder.add(config, &quot;BLOOM_THRESHOLD&quot;, 0.0, 1.0).name(&quot;threshold&quot;);<br><br>  let captureFolder = gui.addFolder(&quot;Capture&quot;);<br>  captureFolder.addColor(config, &quot;BACK_COLOR&quot;).name(&quot;background color&quot;);<br>  captureFolder.add(config, &quot;TRANSPARENT&quot;).name(&quot;transparent&quot;);<br>  captureFolder<br>    .add(<br>      {<br>        fun: captureScreenshot<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;take screenshot&quot;);<br><br>  let github = gui<br>    .add(<br>      {<br>        fun: () =&gt; {<br>          window.open(&quot;https://github.com/PavelDoGreat/WebGL-Fluid-Simulation&quot;);<br>          ga(&quot;send&quot;, &quot;event&quot;, &quot;link button&quot;, &quot;github&quot;);<br>        }<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;Github&quot;);<br>  github.__li.className = &quot;cr function bigFont&quot;;<br>  github.__li.style.borderLeft = &quot;3px solid #8C8C8C&quot;;<br>  let githubIcon = document.createElement(&quot;span&quot;);<br>  github.domElement.parentElement.appendChild(githubIcon);<br>  githubIcon.className = &quot;icon github&quot;;<br><br>  let twitter = gui<br>    .add(<br>      {<br>        fun: () =&gt; {<br>          ga(&quot;send&quot;, &quot;event&quot;, &quot;link button&quot;, &quot;twitter&quot;);<br>          window.open(&quot;https://twitter.com/PavelDoGreat&quot;);<br>        }<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;Twitter&quot;);<br>  twitter.__li.className = &quot;cr function bigFont&quot;;<br>  twitter.__li.style.borderLeft = &quot;3px solid #8C8C8C&quot;;<br>  let twitterIcon = document.createElement(&quot;span&quot;);<br>  twitter.domElement.parentElement.appendChild(twitterIcon);<br>  twitterIcon.className = &quot;icon twitter&quot;;<br><br>  let discord = gui<br>    .add(<br>      {<br>        fun: () =&gt; {<br>          ga(&quot;send&quot;, &quot;event&quot;, &quot;link button&quot;, &quot;discord&quot;);<br>          window.open(&quot;https://discordapp.com/invite/CeqZDDE&quot;);<br>        }<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;Discord&quot;);<br>  discord.__li.className = &quot;cr function bigFont&quot;;<br>  discord.__li.style.borderLeft = &quot;3px solid #8C8C8C&quot;;<br>  let discordIcon = document.createElement(&quot;span&quot;);<br>  discord.domElement.parentElement.appendChild(discordIcon);<br>  discordIcon.className = &quot;icon discord&quot;;<br><br>  let app = gui<br>    .add(<br>      {<br>        fun: () =&gt; {<br>          ga(&quot;send&quot;, &quot;event&quot;, &quot;link button&quot;, &quot;app&quot;);<br>          window.open(&quot;http://onelink.to/5b58bn&quot;);<br>        }<br>      },<br>      &quot;fun&quot;<br>    )<br>    .name(&quot;Check out new improved version&quot;);<br>  app.__li.className = &quot;cr function appBigFont&quot;;<br>  app.__li.style.borderLeft = &quot;3px solid #00FF7F&quot;;<br>  let appIcon = document.createElement(&quot;span&quot;);<br>  app.domElement.parentElement.appendChild(appIcon);<br>  appIcon.className = &quot;icon app&quot;;<br><br>  if (isMobile()) gui.close();<br>}<br><br>function captureScreenshot() {<br>  colorProgram.bind();<br>  gl.uniform4f(colorProgram.uniforms.color, 0, 0, 0, 1);<br>  blit(density.write.fbo);<br><br>  render(density.write.fbo);<br>  gl.bindFramebuffer(gl.FRAMEBUFFER, density.write.fbo);<br><br>  let length = dyeWidth * dyeHeight * 4;<br>  let pixels = new Float32Array(length);<br>  gl.readPixels(0, 0, dyeWidth, dyeHeight, gl.RGBA, gl.FLOAT, pixels);<br><br>  let newPixels = new Uint8Array(length);<br><br>  let id = 0;<br>  for (let i = dyeHeight - 1; i &gt;= 0; i--) {<br>    for (let j = 0; j &lt; dyeWidth; j++) {<br>      let nid = i * dyeWidth * 4 + j * 4;<br>      newPixels[nid + 0] = clamp01(pixels[id + 0]) * 255;<br>      newPixels[nid + 1] = clamp01(pixels[id + 1]) * 255;<br>      newPixels[nid + 2] = clamp01(pixels[id + 2]) * 255;<br>      newPixels[nid + 3] = clamp01(pixels[id + 3]) * 255;<br>      id += 4;<br>    }<br>  }<br><br>  let captureCanvas = document.createElement(&quot;canvas&quot;);<br>  let ctx = captureCanvas.getContext(&quot;2d&quot;);<br>  captureCanvas.width = dyeWidth;<br>  captureCanvas.height = dyeHeight;<br><br>  let imageData = ctx.createImageData(dyeWidth, dyeHeight);<br>  imageData.data.set(newPixels);<br>  ctx.putImageData(imageData, 0, 0);<br>  let datauri = captureCanvas.toDataURL();<br><br>  downloadURI(&quot;fluid.png&quot;, datauri);<br><br>  URL.revokeObjectURL(datauri);<br>}<br><br>function clamp01(input) {<br>  return Math.min(Math.max(input, 0), 1);<br>}<br><br>function downloadURI(filename, uri) {<br>  let link = document.createElement(&quot;a&quot;);<br>  link.download = filename;<br>  link.href = uri;<br>  document.body.appendChild(link);<br>  link.click();<br>  document.body.removeChild(link);<br>}<br><br>function isMobile() {<br>  return /Mobi|Android/i.test(navigator.userAgent);<br>}<br><br>class GLProgram {<br>  constructor(vertexShader, fragmentShader) {<br>    this.uniforms = {};<br>    this.program = gl.createProgram();<br><br>    gl.attachShader(this.program, vertexShader);<br>    gl.attachShader(this.program, fragmentShader);<br>    gl.linkProgram(this.program);<br><br>    if (!gl.getProgramParameter(this.program, gl.LINK_STATUS))<br>      throw gl.getProgramInfoLog(this.program);<br><br>    const uniformCount = gl.getProgramParameter(<br>      this.program,<br>      gl.ACTIVE_UNIFORMS<br>    );<br>    for (let i = 0; i &lt; uniformCount; i++) {<br>      const uniformName = gl.getActiveUniform(this.program, i).name;<br>      this.uniforms[uniformName] = gl.getUniformLocation(<br>        this.program,<br>        uniformName<br>      );<br>    }<br>  }<br><br>  bind() {<br>    gl.useProgram(this.program);<br>  }<br>}<br><br>function compileShader(type, source) {<br>  const shader = gl.createShader(type);<br>  gl.shaderSource(shader, source);<br>  gl.compileShader(shader);<br><br>  if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))<br>    throw gl.getShaderInfoLog(shader);<br><br>  return shader;<br>}<br><br>const baseVertexShader = compileShader(<br>  gl.VERTEX_SHADER,<br>  `<br>    precision highp float;<br><br>    attribute vec2 aPosition;<br>    varying vec2 vUv;<br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform vec2 texelSize;<br><br>    void main () {<br>        vUv = aPosition * 0.5 + 0.5;<br>        vL = vUv - vec2(texelSize.x, 0.0);<br>        vR = vUv + vec2(texelSize.x, 0.0);<br>        vT = vUv + vec2(0.0, texelSize.y);<br>        vB = vUv - vec2(0.0, texelSize.y);<br>        gl_Position = vec4(aPosition, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const clearShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying highp vec2 vUv;<br>    uniform sampler2D uTexture;<br>    uniform float value;<br><br>    void main () {<br>        gl_FragColor = value * texture2D(uTexture, vUv);<br>    }<br>`<br>);<br><br>const colorShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br><br>    uniform vec4 color;<br><br>    void main () {<br>        gl_FragColor = color;<br>    }<br>`<br>);<br><br>const backgroundShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uTexture;<br>    uniform float aspectRatio;<br><br>    #define SCALE 25.0<br><br>    void main () {<br>        vec2 uv = floor(vUv * SCALE * vec2(aspectRatio, 1.0));<br>        float v = mod(uv.x + uv.y, 2.0);<br>        v = v * 0.1 + 0.8;<br>        gl_FragColor = vec4(vec3(v), 1.0);<br>    }<br>`<br>);<br><br>const displayShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uTexture;<br><br>    void main () {<br>        vec3 C = texture2D(uTexture, vUv).rgb;<br>        float a = max(C.r, max(C.g, C.b));<br>        gl_FragColor = vec4(C, a);<br>    }<br>`<br>);<br><br>const displayBloomShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uTexture;<br>    uniform sampler2D uBloom;<br>    uniform sampler2D uDithering;<br>    uniform vec2 ditherScale;<br><br>    void main () {<br>        vec3 C = texture2D(uTexture, vUv).rgb;<br>        vec3 bloom = texture2D(uBloom, vUv).rgb;<br>        vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;<br>        noise = noise * 2.0 - 1.0;<br>        bloom += noise / 800.0;<br>        bloom = pow(bloom.rgb, vec3(1.0 / 2.2));<br>        C += bloom;<br>        float a = max(C.r, max(C.g, C.b));<br>        gl_FragColor = vec4(C, a);<br>    }<br>`<br>);<br><br>const displayShadingShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform sampler2D uTexture;<br>    uniform vec2 texelSize;<br><br>    void main () {<br>        vec3 L = texture2D(uTexture, vL).rgb;<br>        vec3 R = texture2D(uTexture, vR).rgb;<br>        vec3 T = texture2D(uTexture, vT).rgb;<br>        vec3 B = texture2D(uTexture, vB).rgb;<br>        vec3 C = texture2D(uTexture, vUv).rgb;<br><br>        float dx = length(R) - length(L);<br>        float dy = length(T) - length(B);<br><br>        vec3 n = normalize(vec3(dx, dy, length(texelSize)));<br>        vec3 l = vec3(0.0, 0.0, 1.0);<br><br>        float diffuse = clamp(dot(n, l) + 0.7, 0.7, 1.0);<br>        C.rgb *= diffuse;<br><br>        float a = max(C.r, max(C.g, C.b));<br>        gl_FragColor = vec4(C, a);<br>    }<br>`<br>);<br><br>const displayBloomShadingShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform sampler2D uTexture;<br>    uniform sampler2D uBloom;<br>    uniform sampler2D uDithering;<br>    uniform vec2 ditherScale;<br>    uniform vec2 texelSize;<br><br>    void main () {<br>        vec3 L = texture2D(uTexture, vL).rgb;<br>        vec3 R = texture2D(uTexture, vR).rgb;<br>        vec3 T = texture2D(uTexture, vT).rgb;<br>        vec3 B = texture2D(uTexture, vB).rgb;<br>        vec3 C = texture2D(uTexture, vUv).rgb;<br><br>        float dx = length(R) - length(L);<br>        float dy = length(T) - length(B);<br><br>        vec3 n = normalize(vec3(dx, dy, length(texelSize)));<br>        vec3 l = vec3(0.0, 0.0, 1.0);<br><br>        float diffuse = clamp(dot(n, l) + 0.7, 0.7, 1.0);<br>        C *= diffuse;<br><br>        vec3 bloom = texture2D(uBloom, vUv).rgb;<br>        vec3 noise = texture2D(uDithering, vUv * ditherScale).rgb;<br>        noise = noise * 2.0 - 1.0;<br>        bloom += noise / 800.0;<br>        bloom = pow(bloom.rgb, vec3(1.0 / 2.2));<br>        C += bloom;<br><br>        float a = max(C.r, max(C.g, C.b));<br>        gl_FragColor = vec4(C, a);<br>    }<br>`<br>);<br><br>const bloomPrefilterShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uTexture;<br>    uniform vec3 curve;<br>    uniform float threshold;<br><br>    void main () {<br>        vec3 c = texture2D(uTexture, vUv).rgb;<br>        float br = max(c.r, max(c.g, c.b));<br>        float rq = clamp(br - curve.x, 0.0, curve.y);<br>        rq = curve.z * rq * rq;<br>        c *= max(rq, br - threshold) / max(br, 0.0001);<br>        gl_FragColor = vec4(c, 0.0);<br>    }<br>`<br>);<br><br>const bloomBlurShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform sampler2D uTexture;<br><br>    void main () {<br>        vec4 sum = vec4(0.0);<br>        sum += texture2D(uTexture, vL);<br>        sum += texture2D(uTexture, vR);<br>        sum += texture2D(uTexture, vT);<br>        sum += texture2D(uTexture, vB);<br>        sum *= 0.25;<br>        gl_FragColor = sum;<br>    }<br>`<br>);<br><br>const bloomFinalShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform sampler2D uTexture;<br>    uniform float intensity;<br><br>    void main () {<br>        vec4 sum = vec4(0.0);<br>        sum += texture2D(uTexture, vL);<br>        sum += texture2D(uTexture, vR);<br>        sum += texture2D(uTexture, vT);<br>        sum += texture2D(uTexture, vB);<br>        sum *= 0.25;<br>        gl_FragColor = sum * intensity;<br>    }<br>`<br>);<br><br>const splatShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uTarget;<br>    uniform float aspectRatio;<br>    uniform vec3 color;<br>    uniform vec2 point;<br>    uniform float radius;<br><br>    void main () {<br>        vec2 p = vUv - point.xy;<br>        p.x *= aspectRatio;<br>        vec3 splat = exp(-dot(p, p) / radius) * color;<br>        vec3 base = texture2D(uTarget, vUv).xyz;<br>        gl_FragColor = vec4(base + splat, 1.0);<br>    }<br>`<br>);<br><br>const advectionManualFilteringShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uVelocity;<br>    uniform sampler2D uSource;<br>    uniform vec2 texelSize;<br>    uniform vec2 dyeTexelSize;<br>    uniform float dt;<br>    uniform float dissipation;<br><br>    vec4 bilerp (sampler2D sam, vec2 uv, vec2 tsize) {<br>        vec2 st = uv / tsize - 0.5;<br><br>        vec2 iuv = floor(st);<br>        vec2 fuv = fract(st);<br><br>        vec4 a = texture2D(sam, (iuv + vec2(0.5, 0.5)) * tsize);<br>        vec4 b = texture2D(sam, (iuv + vec2(1.5, 0.5)) * tsize);<br>        vec4 c = texture2D(sam, (iuv + vec2(0.5, 1.5)) * tsize);<br>        vec4 d = texture2D(sam, (iuv + vec2(1.5, 1.5)) * tsize);<br><br>        return mix(mix(a, b, fuv.x), mix(c, d, fuv.x), fuv.y);<br>    }<br><br>    void main () {<br>        vec2 coord = vUv - dt * bilerp(uVelocity, vUv, texelSize).xy * texelSize;<br>        gl_FragColor = dissipation * bilerp(uSource, coord, dyeTexelSize);<br>        gl_FragColor.a = 1.0;<br>    }<br>`<br>);<br><br>const advectionShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    uniform sampler2D uVelocity;<br>    uniform sampler2D uSource;<br>    uniform vec2 texelSize;<br>    uniform float dt;<br>    uniform float dissipation;<br><br>    void main () {<br>        vec2 coord = vUv - dt * texture2D(uVelocity, vUv).xy * texelSize;<br>        gl_FragColor = dissipation * texture2D(uSource, coord);<br>        gl_FragColor.a = 1.0;<br>    }<br>`<br>);<br><br>const divergenceShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying highp vec2 vUv;<br>    varying highp vec2 vL;<br>    varying highp vec2 vR;<br>    varying highp vec2 vT;<br>    varying highp vec2 vB;<br>    uniform sampler2D uVelocity;<br><br>    void main () {<br>        float L = texture2D(uVelocity, vL).x;<br>        float R = texture2D(uVelocity, vR).x;<br>        float T = texture2D(uVelocity, vT).y;<br>        float B = texture2D(uVelocity, vB).y;<br><br>        vec2 C = texture2D(uVelocity, vUv).xy;<br>        if (vL.x &lt; 0.0) { L = -C.x; }<br>        if (vR.x &gt; 1.0) { R = -C.x; }<br>        if (vT.y &gt; 1.0) { T = -C.y; }<br>        if (vB.y &lt; 0.0) { B = -C.y; }<br><br>        float div = 0.5 * (R - L + T - B);<br>        gl_FragColor = vec4(div, 0.0, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const curlShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying highp vec2 vUv;<br>    varying highp vec2 vL;<br>    varying highp vec2 vR;<br>    varying highp vec2 vT;<br>    varying highp vec2 vB;<br>    uniform sampler2D uVelocity;<br><br>    void main () {<br>        float L = texture2D(uVelocity, vL).y;<br>        float R = texture2D(uVelocity, vR).y;<br>        float T = texture2D(uVelocity, vT).x;<br>        float B = texture2D(uVelocity, vB).x;<br>        float vorticity = R - L - T + B;<br>        gl_FragColor = vec4(0.5 * vorticity, 0.0, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const vorticityShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision highp float;<br>    precision highp sampler2D;<br><br>    varying vec2 vUv;<br>    varying vec2 vL;<br>    varying vec2 vR;<br>    varying vec2 vT;<br>    varying vec2 vB;<br>    uniform sampler2D uVelocity;<br>    uniform sampler2D uCurl;<br>    uniform float curl;<br>    uniform float dt;<br><br>    void main () {<br>        float L = texture2D(uCurl, vL).x;<br>        float R = texture2D(uCurl, vR).x;<br>        float T = texture2D(uCurl, vT).x;<br>        float B = texture2D(uCurl, vB).x;<br>        float C = texture2D(uCurl, vUv).x;<br><br>        vec2 force = 0.5 * vec2(abs(T) - abs(B), abs(R) - abs(L));<br>        force /= length(force) + 0.0001;<br>        force *= curl * C;<br>        force.y *= -1.0;<br><br>        vec2 vel = texture2D(uVelocity, vUv).xy;<br>        gl_FragColor = vec4(vel + force * dt, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const pressureShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying highp vec2 vUv;<br>    varying highp vec2 vL;<br>    varying highp vec2 vR;<br>    varying highp vec2 vT;<br>    varying highp vec2 vB;<br>    uniform sampler2D uPressure;<br>    uniform sampler2D uDivergence;<br><br>    vec2 boundary (vec2 uv) {<br>        return uv;<br>        // uncomment if you use wrap or repeat texture mode<br>        // uv = min(max(uv, 0.0), 1.0);<br>        // return uv;<br>    }<br><br>    void main () {<br>        float L = texture2D(uPressure, boundary(vL)).x;<br>        float R = texture2D(uPressure, boundary(vR)).x;<br>        float T = texture2D(uPressure, boundary(vT)).x;<br>        float B = texture2D(uPressure, boundary(vB)).x;<br>        float C = texture2D(uPressure, vUv).x;<br>        float divergence = texture2D(uDivergence, vUv).x;<br>        float pressure = (L + R + B + T - divergence) * 0.25;<br>        gl_FragColor = vec4(pressure, 0.0, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const gradientSubtractShader = compileShader(<br>  gl.FRAGMENT_SHADER,<br>  `<br>    precision mediump float;<br>    precision mediump sampler2D;<br><br>    varying highp vec2 vUv;<br>    varying highp vec2 vL;<br>    varying highp vec2 vR;<br>    varying highp vec2 vT;<br>    varying highp vec2 vB;<br>    uniform sampler2D uPressure;<br>    uniform sampler2D uVelocity;<br><br>    vec2 boundary (vec2 uv) {<br>        return uv;<br>        // uv = min(max(uv, 0.0), 1.0);<br>        // return uv;<br>    }<br><br>    void main () {<br>        float L = texture2D(uPressure, boundary(vL)).x;<br>        float R = texture2D(uPressure, boundary(vR)).x;<br>        float T = texture2D(uPressure, boundary(vT)).x;<br>        float B = texture2D(uPressure, boundary(vB)).x;<br>        vec2 velocity = texture2D(uVelocity, vUv).xy;<br>        velocity.xy -= vec2(R - L, T - B);<br>        gl_FragColor = vec4(velocity, 0.0, 1.0);<br>    }<br>`<br>);<br><br>const blit = (() =&gt; {<br>  gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());<br>  gl.bufferData(<br>    gl.ARRAY_BUFFER,<br>    new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]),<br>    gl.STATIC_DRAW<br>  );<br>  gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, gl.createBuffer());<br>  gl.bufferData(<br>    gl.ELEMENT_ARRAY_BUFFER,<br>    new Uint16Array([0, 1, 2, 0, 2, 3]),<br>    gl.STATIC_DRAW<br>  );<br>  gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);<br>  gl.enableVertexAttribArray(0);<br><br>  return (destination) =&gt; {<br>    gl.bindFramebuffer(gl.FRAMEBUFFER, destination);<br>    gl.drawElements(gl.TRIANGLES, 6, gl.UNSIGNED_SHORT, 0);<br>  };<br>})();<br><br>let simWidth;<br>let simHeight;<br>let dyeWidth;<br>let dyeHeight;<br>let density;<br>let velocity;<br>let divergence;<br>let curl;<br>let pressure;<br>let bloom;<br><br>let ditheringTexture = createTextureAsync(&quot;LDR_RGB1_0.png&quot;);<br><br>const clearProgram = new GLProgram(baseVertexShader, clearShader);<br>const colorProgram = new GLProgram(baseVertexShader, colorShader);<br>const backgroundProgram = new GLProgram(baseVertexShader, backgroundShader);<br>const displayProgram = new GLProgram(baseVertexShader, displayShader);<br>const displayBloomProgram = new GLProgram(baseVertexShader, displayBloomShader);<br>const displayShadingProgram = new GLProgram(<br>  baseVertexShader,<br>  displayShadingShader<br>);<br>const displayBloomShadingProgram = new GLProgram(<br>  baseVertexShader,<br>  displayBloomShadingShader<br>);<br>const bloomPrefilterProgram = new GLProgram(<br>  baseVertexShader,<br>  bloomPrefilterShader<br>);<br>const bloomBlurProgram = new GLProgram(baseVertexShader, bloomBlurShader);<br>const bloomFinalProgram = new GLProgram(baseVertexShader, bloomFinalShader);<br>const splatProgram = new GLProgram(baseVertexShader, splatShader);<br>const advectionProgram = new GLProgram(<br>  baseVertexShader,<br>  ext.supportLinearFiltering ? advectionShader : advectionManualFilteringShader<br>);<br>const divergenceProgram = new GLProgram(baseVertexShader, divergenceShader);<br>const curlProgram = new GLProgram(baseVertexShader, curlShader);<br>const vorticityProgram = new GLProgram(baseVertexShader, vorticityShader);<br>const pressureProgram = new GLProgram(baseVertexShader, pressureShader);<br>const gradienSubtractProgram = new GLProgram(<br>  baseVertexShader,<br>  gradientSubtractShader<br>);<br><br>function initFramebuffers() {<br>  let simRes = getResolution(config.SIM_RESOLUTION);<br>  let dyeRes = getResolution(config.DYE_RESOLUTION);<br><br>  simWidth = simRes.width;<br>  simHeight = simRes.height;<br>  dyeWidth = dyeRes.width;<br>  dyeHeight = dyeRes.height;<br><br>  const texType = ext.halfFloatTexType;<br>  const rgba = ext.formatRGBA;<br>  const rg = ext.formatRG;<br>  const r = ext.formatR;<br>  const filtering = ext.supportLinearFiltering ? gl.LINEAR : gl.NEAREST;<br><br>  if (density == null)<br>    density = createDoubleFBO(<br>      dyeWidth,<br>      dyeHeight,<br>      rgba.internalFormat,<br>      rgba.format,<br>      texType,<br>      filtering<br>    );<br>  else<br>    density = resizeDoubleFBO(<br>      density,<br>      dyeWidth,<br>      dyeHeight,<br>      rgba.internalFormat,<br>      rgba.format,<br>      texType,<br>      filtering<br>    );<br><br>  if (velocity == null)<br>    velocity = createDoubleFBO(<br>      simWidth,<br>      simHeight,<br>      rg.internalFormat,<br>      rg.format,<br>      texType,<br>      filtering<br>    );<br>  else<br>    velocity = resizeDoubleFBO(<br>      velocity,<br>      simWidth,<br>      simHeight,<br>      rg.internalFormat,<br>      rg.format,<br>      texType,<br>      filtering<br>    );<br><br>  divergence = createFBO(<br>    simWidth,<br>    simHeight,<br>    r.internalFormat,<br>    r.format,<br>    texType,<br>    gl.NEAREST<br>  );<br>  curl = createFBO(<br>    simWidth,<br>    simHeight,<br>    r.internalFormat,<br>    r.format,<br>    texType,<br>    gl.NEAREST<br>  );<br>  pressure = createDoubleFBO(<br>    simWidth,<br>    simHeight,<br>    r.internalFormat,<br>    r.format,<br>    texType,<br>    gl.NEAREST<br>  );<br><br>  initBloomFramebuffers();<br>}<br><br>function initBloomFramebuffers() {<br>  let res = getResolution(config.BLOOM_RESOLUTION);<br><br>  const texType = ext.halfFloatTexType;<br>  const rgba = ext.formatRGBA;<br>  const filtering = ext.supportLinearFiltering ? gl.LINEAR : gl.NEAREST;<br><br>  bloom = createFBO(<br>    res.width,<br>    res.height,<br>    rgba.internalFormat,<br>    rgba.format,<br>    texType,<br>    filtering<br>  );<br><br>  bloomFramebuffers.length = 0;<br>  for (let i = 0; i &lt; config.BLOOM_ITERATIONS; i++) {<br>    let width = res.width &gt;&gt; (i + 1);<br>    let height = res.height &gt;&gt; (i + 1);<br><br>    if (width &lt; 2 || height &lt; 2) break;<br><br>    let fbo = createFBO(<br>      width,<br>      height,<br>      rgba.internalFormat,<br>      rgba.format,<br>      texType,<br>      filtering<br>    );<br>    bloomFramebuffers.push(fbo);<br>  }<br>}<br><br>function createFBO(w, h, internalFormat, format, type, param) {<br>  gl.activeTexture(gl.TEXTURE0);<br>  let texture = gl.createTexture();<br>  gl.bindTexture(gl.TEXTURE_2D, texture);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, param);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, param);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);<br>  gl.texImage2D(gl.TEXTURE_2D, 0, internalFormat, w, h, 0, format, type, null);<br><br>  let fbo = gl.createFramebuffer();<br>  gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);<br>  gl.framebufferTexture2D(<br>    gl.FRAMEBUFFER,<br>    gl.COLOR_ATTACHMENT0,<br>    gl.TEXTURE_2D,<br>    texture,<br>    0<br>  );<br>  gl.viewport(0, 0, w, h);<br>  gl.clear(gl.COLOR_BUFFER_BIT);<br><br>  return {<br>    texture,<br>    fbo,<br>    width: w,<br>    height: h,<br>    attach(id) {<br>      gl.activeTexture(gl.TEXTURE0 + id);<br>      gl.bindTexture(gl.TEXTURE_2D, texture);<br>      return id;<br>    }<br>  };<br>}<br><br>function createDoubleFBO(w, h, internalFormat, format, type, param) {<br>  let fbo1 = createFBO(w, h, internalFormat, format, type, param);<br>  let fbo2 = createFBO(w, h, internalFormat, format, type, param);<br><br>  return {<br>    get read() {<br>      return fbo1;<br>    },<br>    set read(value) {<br>      fbo1 = value;<br>    },<br>    get write() {<br>      return fbo2;<br>    },<br>    set write(value) {<br>      fbo2 = value;<br>    },<br>    swap() {<br>      let temp = fbo1;<br>      fbo1 = fbo2;<br>      fbo2 = temp;<br>    }<br>  };<br>}<br><br>function resizeFBO(target, w, h, internalFormat, format, type, param) {<br>  let newFBO = createFBO(w, h, internalFormat, format, type, param);<br>  clearProgram.bind();<br>  gl.uniform1i(clearProgram.uniforms.uTexture, target.attach(0));<br>  gl.uniform1f(clearProgram.uniforms.value, 1);<br>  blit(newFBO.fbo);<br>  return newFBO;<br>}<br><br>function resizeDoubleFBO(target, w, h, internalFormat, format, type, param) {<br>  target.read = resizeFBO(<br>    target.read,<br>    w,<br>    h,<br>    internalFormat,<br>    format,<br>    type,<br>    param<br>  );<br>  target.write = createFBO(w, h, internalFormat, format, type, param);<br>  return target;<br>}<br><br>function createTextureAsync(url) {<br>  let texture = gl.createTexture();<br>  gl.bindTexture(gl.TEXTURE_2D, texture);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT);<br>  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.REPEAT);<br>  gl.texImage2D(<br>    gl.TEXTURE_2D,<br>    0,<br>    gl.RGB,<br>    1,<br>    1,<br>    0,<br>    gl.RGB,<br>    gl.UNSIGNED_BYTE,<br>    new Uint8Array([255, 255, 255])<br>  );<br><br>  let obj = {<br>    texture,<br>    width: 1,<br>    height: 1,<br>    attach(id) {<br>      gl.activeTexture(gl.TEXTURE0 + id);<br>      gl.bindTexture(gl.TEXTURE_2D, texture);<br>      return id;<br>    }<br>  };<br><br>  let image = new Image();<br>  image.onload = () =&gt; {<br>    obj.width = image.width;<br>    obj.height = image.height;<br>    gl.bindTexture(gl.TEXTURE_2D, texture);<br>    gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, gl.RGB, gl.UNSIGNED_BYTE, image);<br>  };<br>  image.src = url;<br><br>  return obj;<br>}<br><br>initFramebuffers();<br>multipleSplats(parseInt(Math.random() * 20) + 5);<br><br>let lastColorChangeTime = Date.now();<br><br>update();<br><br>function update() {<br>  resizeCanvas();<br>  input();<br>  if (!config.PAUSED) step(0.016);<br>  render(null);<br>  requestAnimationFrame(update);<br>}<br><br>function input() {<br>  if (splatStack.length &gt; 0) multipleSplats(splatStack.pop());<br><br>  for (let i = 0; i &lt; pointers.length; i++) {<br>    const p = pointers[i];<br>    if (p.moved) {<br>      splat(p.x, p.y, p.dx, p.dy, p.color);<br>      p.moved = false;<br>    }<br>  }<br><br>  if (!config.COLORFUL) return;<br><br>  if (lastColorChangeTime + 100 &lt; Date.now()) {<br>    lastColorChangeTime = Date.now();<br>    for (let i = 0; i &lt; pointers.length; i++) {<br>      const p = pointers[i];<br>      p.color = generateColor();<br>    }<br>  }<br>}<br><br>function step(dt) {<br>  gl.disable(gl.BLEND);<br>  gl.viewport(0, 0, simWidth, simHeight);<br><br>  curlProgram.bind();<br>  gl.uniform2f(curlProgram.uniforms.texelSize, 1.0 / simWidth, 1.0 / simHeight);<br>  gl.uniform1i(curlProgram.uniforms.uVelocity, velocity.read.attach(0));<br>  blit(curl.fbo);<br><br>  vorticityProgram.bind();<br>  gl.uniform2f(<br>    vorticityProgram.uniforms.texelSize,<br>    1.0 / simWidth,<br>    1.0 / simHeight<br>  );<br>  gl.uniform1i(vorticityProgram.uniforms.uVelocity, velocity.read.attach(0));<br>  gl.uniform1i(vorticityProgram.uniforms.uCurl, curl.attach(1));<br>  gl.uniform1f(vorticityProgram.uniforms.curl, config.CURL);<br>  gl.uniform1f(vorticityProgram.uniforms.dt, dt);<br>  blit(velocity.write.fbo);<br>  velocity.swap();<br><br>  divergenceProgram.bind();<br>  gl.uniform2f(<br>    divergenceProgram.uniforms.texelSize,<br>    1.0 / simWidth,<br>    1.0 / simHeight<br>  );<br>  gl.uniform1i(divergenceProgram.uniforms.uVelocity, velocity.read.attach(0));<br>  blit(divergence.fbo);<br><br>  clearProgram.bind();<br>  gl.uniform1i(clearProgram.uniforms.uTexture, pressure.read.attach(0));<br>  gl.uniform1f(clearProgram.uniforms.value, config.PRESSURE_DISSIPATION);<br>  blit(pressure.write.fbo);<br>  pressure.swap();<br><br>  pressureProgram.bind();<br>  gl.uniform2f(<br>    pressureProgram.uniforms.texelSize,<br>    1.0 / simWidth,<br>    1.0 / simHeight<br>  );<br>  gl.uniform1i(pressureProgram.uniforms.uDivergence, divergence.attach(0));<br>  for (let i = 0; i &lt; config.PRESSURE_ITERATIONS; i++) {<br>    gl.uniform1i(pressureProgram.uniforms.uPressure, pressure.read.attach(1));<br>    blit(pressure.write.fbo);<br>    pressure.swap();<br>  }<br><br>  gradienSubtractProgram.bind();<br>  gl.uniform2f(<br>    gradienSubtractProgram.uniforms.texelSize,<br>    1.0 / simWidth,<br>    1.0 / simHeight<br>  );<br>  gl.uniform1i(<br>    gradienSubtractProgram.uniforms.uPressure,<br>    pressure.read.attach(0)<br>  );<br>  gl.uniform1i(<br>    gradienSubtractProgram.uniforms.uVelocity,<br>    velocity.read.attach(1)<br>  );<br>  blit(velocity.write.fbo);<br>  velocity.swap();<br><br>  advectionProgram.bind();<br>  gl.uniform2f(<br>    advectionProgram.uniforms.texelSize,<br>    1.0 / simWidth,<br>    1.0 / simHeight<br>  );<br>  if (!ext.supportLinearFiltering)<br>    gl.uniform2f(<br>      advectionProgram.uniforms.dyeTexelSize,<br>      1.0 / simWidth,<br>      1.0 / simHeight<br>    );<br>  let velocityId = velocity.read.attach(0);<br>  gl.uniform1i(advectionProgram.uniforms.uVelocity, velocityId);<br>  gl.uniform1i(advectionProgram.uniforms.uSource, velocityId);<br>  gl.uniform1f(advectionProgram.uniforms.dt, dt);<br>  gl.uniform1f(<br>    advectionProgram.uniforms.dissipation,<br>    config.VELOCITY_DISSIPATION<br>  );<br>  blit(velocity.write.fbo);<br>  velocity.swap();<br><br>  gl.viewport(0, 0, dyeWidth, dyeHeight);<br><br>  if (!ext.supportLinearFiltering)<br>    gl.uniform2f(<br>      advectionProgram.uniforms.dyeTexelSize,<br>      1.0 / dyeWidth,<br>      1.0 / dyeHeight<br>    );<br>  gl.uniform1i(advectionProgram.uniforms.uVelocity, velocity.read.attach(0));<br>  gl.uniform1i(advectionProgram.uniforms.uSource, density.read.attach(1));<br>  gl.uniform1f(<br>    advectionProgram.uniforms.dissipation,<br>    config.DENSITY_DISSIPATION<br>  );<br>  blit(density.write.fbo);<br>  density.swap();<br>}<br><br>function render(target) {<br>  if (config.BLOOM) applyBloom(density.read, bloom);<br><br>  if (target == null || !config.TRANSPARENT) {<br>    gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);<br>    gl.enable(gl.BLEND);<br>  } else {<br>    gl.disable(gl.BLEND);<br>  }<br><br>  let width = target == null ? gl.drawingBufferWidth : dyeWidth;<br>  let height = target == null ? gl.drawingBufferHeight : dyeHeight;<br><br>  gl.viewport(0, 0, width, height);<br><br>  if (!config.TRANSPARENT) {<br>    colorProgram.bind();<br>    let bc = config.BACK_COLOR;<br>    gl.uniform4f(<br>      colorProgram.uniforms.color,<br>      bc.r / 255,<br>      bc.g / 255,<br>      bc.b / 255,<br>      1<br>    );<br>    blit(target);<br>  }<br><br>  if (target == null &amp;&amp; config.TRANSPARENT) {<br>    backgroundProgram.bind();<br>    gl.uniform1f(<br>      backgroundProgram.uniforms.aspectRatio,<br>      canvas.width / canvas.height<br>    );<br>    blit(null);<br>  }<br><br>  if (config.SHADING) {<br>    let program = config.BLOOM<br>      ? displayBloomShadingProgram<br>      : displayShadingProgram;<br>    program.bind();<br>    gl.uniform2f(program.uniforms.texelSize, 1.0 / width, 1.0 / height);<br>    gl.uniform1i(program.uniforms.uTexture, density.read.attach(0));<br>    if (config.BLOOM) {<br>      gl.uniform1i(program.uniforms.uBloom, bloom.attach(1));<br>      gl.uniform1i(program.uniforms.uDithering, ditheringTexture.attach(2));<br>      let scale = getTextureScale(ditheringTexture, width, height);<br>      gl.uniform2f(program.uniforms.ditherScale, scale.x, scale.y);<br>    }<br>  } else {<br>    let program = config.BLOOM ? displayBloomProgram : displayProgram;<br>    program.bind();<br>    gl.uniform1i(program.uniforms.uTexture, density.read.attach(0));<br>    if (config.BLOOM) {<br>      gl.uniform1i(program.uniforms.uBloom, bloom.attach(1));<br>      gl.uniform1i(program.uniforms.uDithering, ditheringTexture.attach(2));<br>      let scale = getTextureScale(ditheringTexture, width, height);<br>      gl.uniform2f(program.uniforms.ditherScale, scale.x, scale.y);<br>    }<br>  }<br><br>  blit(target);<br>}<br><br>function applyBloom(source, destination) {<br>  if (bloomFramebuffers.length &lt; 2) return;<br><br>  let last = destination;<br><br>  gl.disable(gl.BLEND);<br>  bloomPrefilterProgram.bind();<br>  let knee = config.BLOOM_THRESHOLD * config.BLOOM_SOFT_KNEE + 0.0001;<br>  let curve0 = config.BLOOM_THRESHOLD - knee;<br>  let curve1 = knee * 2;<br>  let curve2 = 0.25 / knee;<br>  gl.uniform3f(bloomPrefilterProgram.uniforms.curve, curve0, curve1, curve2);<br>  gl.uniform1f(<br>    bloomPrefilterProgram.uniforms.threshold,<br>    config.BLOOM_THRESHOLD<br>  );<br>  gl.uniform1i(bloomPrefilterProgram.uniforms.uTexture, source.attach(0));<br>  gl.viewport(0, 0, last.width, last.height);<br>  blit(last.fbo);<br><br>  bloomBlurProgram.bind();<br>  for (let i = 0; i &lt; bloomFramebuffers.length; i++) {<br>    let dest = bloomFramebuffers[i];<br>    gl.uniform2f(<br>      bloomBlurProgram.uniforms.texelSize,<br>      1.0 / last.width,<br>      1.0 / last.height<br>    );<br>    gl.uniform1i(bloomBlurProgram.uniforms.uTexture, last.attach(0));<br>    gl.viewport(0, 0, dest.width, dest.height);<br>    blit(dest.fbo);<br>    last = dest;<br>  }<br><br>  gl.blendFunc(gl.ONE, gl.ONE);<br>  gl.enable(gl.BLEND);<br><br>  for (let i = bloomFramebuffers.length - 2; i &gt;= 0; i--) {<br>    let baseTex = bloomFramebuffers[i];<br>    gl.uniform2f(<br>      bloomBlurProgram.uniforms.texelSize,<br>      1.0 / last.width,<br>      1.0 / last.height<br>    );<br>    gl.uniform1i(bloomBlurProgram.uniforms.uTexture, last.attach(0));<br>    gl.viewport(0, 0, baseTex.width, baseTex.height);<br>    blit(baseTex.fbo);<br>    last = baseTex;<br>  }<br><br>  gl.disable(gl.BLEND);<br>  bloomFinalProgram.bind();<br>  gl.uniform2f(<br>    bloomFinalProgram.uniforms.texelSize,<br>    1.0 / last.width,<br>    1.0 / last.height<br>  );<br>  gl.uniform1i(bloomFinalProgram.uniforms.uTexture, last.attach(0));<br>  gl.uniform1f(bloomFinalProgram.uniforms.intensity, config.BLOOM_INTENSITY);<br>  gl.viewport(0, 0, destination.width, destination.height);<br>  blit(destination.fbo);<br>}<br><br>function splat(x, y, dx, dy, color) {<br>  gl.viewport(0, 0, simWidth, simHeight);<br>  splatProgram.bind();<br>  gl.uniform1i(splatProgram.uniforms.uTarget, velocity.read.attach(0));<br>  gl.uniform1f(splatProgram.uniforms.aspectRatio, canvas.width / canvas.height);<br>  gl.uniform2f(<br>    splatProgram.uniforms.point,<br>    x / canvas.width,<br>    1.0 - y / canvas.height<br>  );<br>  gl.uniform3f(splatProgram.uniforms.color, dx, -dy, 1.0);<br>  gl.uniform1f(splatProgram.uniforms.radius, config.SPLAT_RADIUS / 100.0);<br>  blit(velocity.write.fbo);<br>  velocity.swap();<br><br>  gl.viewport(0, 0, dyeWidth, dyeHeight);<br>  gl.uniform1i(splatProgram.uniforms.uTarget, density.read.attach(0));<br>  gl.uniform3f(splatProgram.uniforms.color, color.r, color.g, color.b);<br>  blit(density.write.fbo);<br>  density.swap();<br>}<br><br>function multipleSplats(amount) {<br>  for (let i = 0; i &lt; amount; i++) {<br>    const color = generateColor();<br>    color.r *= 10.0;<br>    color.g *= 10.0;<br>    color.b *= 10.0;<br>    const x = canvas.width * Math.random();<br>    const y = canvas.height * Math.random();<br>    const dx = 1000 * (Math.random() - 0.5);<br>    const dy = 1000 * (Math.random() - 0.5);<br>    splat(x, y, dx, dy, color);<br>  }<br>}<br><br>function resizeCanvas() {<br>  if (<br>    canvas.width != canvas.clientWidth ||<br>    canvas.height != canvas.clientHeight<br>  ) {<br>    canvas.width = canvas.clientWidth;<br>    canvas.height = canvas.clientHeight;<br>    initFramebuffers();<br>  }<br>}<br><br>canvas.addEventListener(&quot;mousemove&quot;, (e) =&gt; {<br>  pointers[0].moved = pointers[0].down;<br>  pointers[0].dx = (e.offsetX - pointers[0].x) * 5.0;<br>  pointers[0].dy = (e.offsetY - pointers[0].y) * 5.0;<br>  pointers[0].x = e.offsetX;<br>  pointers[0].y = e.offsetY;<br>});<br><br>/* canvas.addEventListener(&#39;touchmove&#39;, e =&gt; {<br>    e.preventDefault();<br>    const touches = e.targetTouches;<br>    for (let i = 0; i &lt; touches.length; i++) {<br>        let pointer = pointers[i];<br>        pointer.moved = pointer.down;<br>        pointer.dx = (touches[i].pageX - pointer.x) * 8.0;<br>        pointer.dy = (touches[i].pageY - pointer.y) * 8.0;<br>        pointer.x = touches[i].pageX;<br>        pointer.y = touches[i].pageY;<br>    }<br>}, false); */<br><br>canvas.addEventListener(&quot;mousedown&quot;, () =&gt; {<br>  pointers[0].down = true;<br>  pointers[0].color = generateColor();<br>});<br><br>/* canvas.addEventListener(&#39;touchstart&#39;, e =&gt; {<br>    e.preventDefault();<br>    const touches = e.targetTouches;<br>    for (let i = 0; i &lt; touches.length; i++) {<br>        if (i &gt;= pointers.length)<br>            pointers.push(new pointerPrototype());<br><br>        pointers[i].id = touches[i].identifier;<br>        pointers[i].down = true;<br>        pointers[i].x = touches[i].pageX;<br>        pointers[i].y = touches[i].pageY;<br>        pointers[i].color = generateColor();<br>    }<br>}); */<br><br>/* window.addEventListener(&#39;mouseup&#39;, () =&gt; {<br>    pointers[0].down = false;<br>}); */<br>/* <br>window.addEventListener(&#39;touchend&#39;, e =&gt; {<br>    const touches = e.changedTouches;<br>    for (let i = 0; i &lt; touches.length; i++)<br>        for (let j = 0; j &lt; pointers.length; j++)<br>            if (touches[i].identifier == pointers[j].id)<br>                pointers[j].down = false;<br>}); */<br>/* <br>window.addEventListener(&#39;keydown&#39;, e =&gt; {<br>    if (e.code === &#39;KeyP&#39;)<br>        config.PAUSED = !config.PAUSED;<br>    if (e.key === &#39; &#39;)<br>        splatStack.push(parseInt(Math.random() * 20) + 5);<br>}); */<br><br>function generateColor() {<br>  let c = HSVtoRGB(Math.random(), 1.0, 1.0);<br>  c.r *= 0.15;<br>  c.g *= 0.15;<br>  c.b *= 0.15;<br>  return c;<br>}<br><br>function HSVtoRGB(h, s, v) {<br>  let r, g, b, i, f, p, q, t;<br>  i = Math.floor(h * 6);<br>  f = h * 6 - i;<br>  p = v * (1 - s);<br>  q = v * (1 - f * s);<br>  t = v * (1 - (1 - f) * s);<br><br>  switch (i % 6) {<br>    case 0:<br>      (r = v), (g = t), (b = p);<br>      break;<br>    case 1:<br>      (r = q), (g = v), (b = p);<br>      break;<br>    case 2:<br>      (r = p), (g = v), (b = t);<br>      break;<br>    case 3:<br>      (r = p), (g = q), (b = v);<br>      break;<br>    case 4:<br>      (r = t), (g = p), (b = v);<br>      break;<br>    case 5:<br>      (r = v), (g = p), (b = q);<br>      break;<br>  }<br><br>  return {<br>    r,<br>    g,<br>    b<br>  };<br>}<br><br>function getResolution(resolution) {<br>  let aspectRatio = gl.drawingBufferWidth / gl.drawingBufferHeight;<br>  if (aspectRatio &lt; 1) aspectRatio = 1.0 / aspectRatio;<br><br>  let max = Math.round(resolution * aspectRatio);<br>  let min = Math.round(resolution);<br><br>  if (gl.drawingBufferWidth &gt; gl.drawingBufferHeight)<br>    return {<br>      width: max,<br>      height: min<br>    };<br>  else<br>    return {<br>      width: min,<br>      height: max<br>    };<br>}<br><br>function getTextureScale(texture, width, height) {<br>  return {<br>    x: width / texture.width,<br>    y: height / texture.height<br>  };<br>}</pre><h3>Step 5: Test Your Animation</h3><p>Save all your files and open the HTML file in your web browser. Move your mouse around and watch the circle follow your cursor with a smooth, colorful animation.</p><h3>Conclusion</h3><p>You did it! You’ve created a simple yet stunning fluid animation using HTML, CSS, and JavaScript. By following these steps, you can add interactive elements to your web pages, making them more engaging and visually appealing. Experiment with different shapes, colors, and animations to make your website unique.</p><p>Happy coding! 💻✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71b2731c71a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MindsDB Tutorial: An Easy Guide to Predictive AI with SQL]]></title>
            <link>https://medium.com/@chauhanomprakash7206/mindsdb-tutorial-an-easy-guide-to-predictive-ai-with-sql-601c594c7177?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/601c594c7177</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mindsdb]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Tue, 28 May 2024 12:08:41 GMT</pubDate>
            <atom:updated>2024-05-28T12:08:41.711Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>MindsDB is an innovative open-source AI tool designed to bring the power of machine learning to SQL databases. By enabling predictive analytics directly within SQL queries, MindsDB simplifies the integration of AI into existing data workflows. This tutorial will guide you through the basics of MindsDB, from installation to making your first prediction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*froARwrAI_Th0XIIGub1IQ.jpeg" /></figure><h3>Prerequisites</h3><ul><li>Basic understanding of SQL</li><li>Python installed on your machine</li><li>A SQL database (e.g., MySQL, PostgreSQL) for practice</li></ul><h3>Step 1: Installation</h3><p>First, you need to install MindsDB. You can do this using pip, the Python package manager.</p><pre>pip install mindsdb</pre><h3>Step 2: Setting Up MindsDB</h3><p>After installing MindsDB, you can start the MindsDB server. This can be done using a single command in your terminal:</p><pre>mindsdb</pre><p>MindsDB will start a web-based GUI and a local server. The GUI is accessible via <a href="http://localhost:47334.">http://localhost:47334.</a></p><h3>Step 3: Connecting MindsDB to Your Database</h3><p>To connect MindsDB to your SQL database, use the following command. Replace YOUR_DATABASE_TYPE, YOUR_HOST, YOUR_PORT, YOUR_USER, YOUR_PASSWORD, and YOUR_DATABASE_NAME with your actual database details.</p><pre>CREATE DATABASE mindsdb_database <br>WITH <br>    ENGINE = &#39;mysql&#39;, <br>    CONNECTION_STRING = &#39;mysql://YOUR_USER:YOUR_PASSWORD@YOUR_HOST:YOUR_PORT/YOUR_DATABASE_NAME&#39;;</pre><h3>Step 4: Training a Model</h3><p>Training a model in MindsDB is simple. You just need to specify the data source (a table from your database) and the target column you want to predict. Here’s an example SQL command:</p><pre>CREATE MODEL my_model <br>PREDICT target_column <br>USING <br>    SELECT * FROM your_table;</pre><p>This command trains a machine-learning model named my_model to predict the target_column using all available columns from your_table.</p><h3>Step 5: Making Predictions</h3><p>Once your model is trained, you can use it to make predictions. MindsDB integrates predictions directly into SQL queries. Here’s how you can make a prediction:</p><pre>SELECT target_column, target_column_predicted<br>FROM mindsdb.my_model<br>JOIN your_table<br>LIMIT 10;</pre><p>This query will return the actual values of the target_column and the predicted values (target_column_predicted) for the first 10 rows of your_table.</p><h3>Step 6: Analyzing the Results</h3><p>After running your prediction queries, you can analyze the results to evaluate the performance of your model. Compare the predicted values with the actual values to see how well your model performs.</p><h3>Example Use Case</h3><p>Let’s say you have a table sales_data with columns date, product, sales, and you want to predict future sales. Here&#39;s how you would do it with MindsDB:</p><ol><li>Train the model:</li></ol><pre>CREATE MODEL sales_predictor <br>PREDICT sales <br>USING <br>    SELECT date, product, sales FROM sales_data;</pre><p>2. Make predictions:</p><pre>SELECT date, product, sales, sales_predicted<br>FROM mindsdb.sales_predictor<br>JOIN sales_data<br>LIMIT 10;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=601c594c7177" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create A Top Crazy Slider Effects Using HTML CSS and Javascript]]></title>
            <link>https://medium.com/@chauhanomprakash7206/create-a-top-crazy-slider-effects-using-html-css-and-javascript-4f54d6e7d2f7?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f54d6e7d2f7</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Fri, 17 May 2024 04:39:48 GMT</pubDate>
            <atom:updated>2024-05-17T04:39:48.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*5lwNm-FVTRS5eGwUvm8Hbw.gif" /></figure><p>Creating stunning and interactive sliders can greatly enhance the user experience on your website. In this article, we’ll guide you through the process of building a top-notch, crazy slider effect using HTML, CSS, and JavaScript. Whether you’re a beginner or a seasoned developer, this tutorial will help you create sliders that are both visually appealing and highly functional.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8U9s-Cirb-0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8U9s-Cirb-0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8U9s-Cirb-0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ce8a7e562d3bb4b2565a2de3792f5dd/href">https://medium.com/media/0ce8a7e562d3bb4b2565a2de3792f5dd/href</a></iframe><p><strong>Watch this video easy to understand 🙏😁</strong></p><h4>Step 1: Setting Up the HTML Structure</h4><p>First, you’ll need a simple HTML structure to serve as the foundation for your slider. Here’s an example of how you can set it up:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br><br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Top Slider&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>    &lt;link href=&quot;https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css&quot; rel=&quot;stylesheet&quot; /&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>    &lt;div class=&quot;gallery-warp&quot;&gt;<br><br><br>        &lt;div class=&quot;gallery&quot;&gt;<br>            &lt;div&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-1.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-2.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-3.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-4.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-5.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>                &lt;span&gt;&lt;img src=&quot;./images/image-6.png&quot; alt=&quot;&quot;&gt;&lt;/span&gt;<br>            &lt;/div&gt;<br><br>        &lt;/div&gt;<br><br>        &lt;div class=&quot;Btn-group&quot;&gt;<br>            &lt;span&gt;&lt;i id=&quot;topBtn&quot; class=&quot;ri-arrow-up-fill&quot;&gt;&lt;/i&gt;&lt;/span&gt;<br>            &lt;span&gt;&lt;i id=&quot;downBtn&quot; class=&quot;ri-arrow-down-fill&quot;&gt;&lt;/i&gt;&lt;/i&gt;&lt;/span&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br><br><br>    &lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><h4>Step 2: Styling with CSS</h4><p>Next, you’ll style the slider using CSS to ensure it looks great and functions smoothly. Below is a sample CSS code to get you started:</p><pre>*{<br>margin: 0;<br> padding: 0;<br>box-sizing: border-box;<br>}<br>html,body {  <br> height: 100vh;<br>width: 100%;<br>background-color: #191919;<br>overflow: hidden;<br>}<br>.gallery-warp{<br>    display: flex;<br>    align-items: center;<br>    justify-content: center;<br>    margin: 10% auto;<br>    flex-direction: column;<br>}<br>.gallery{<br>    display: flex;<br>    width: 27%;<br>    height: 587px;<br>    overflow-y: scroll;<br><br>}<br>.gallery::-webkit-scrollbar{<br>    display: none;<br>}<br>.gallery div{<br>    height: 100%;<br>    display: flex;<br>   flex-direction: column;<br>    padding: 10px;<br>   <br>}<br>.gallery div img{<br>    filter: grayscale(100%);<br>    width: 100%;<br>    transition:transform 0.5s ;<br>}<br>.gallery div img:hover{<br>    filter: grayscale(0);<br>    cursor: pointer;<br>    transform: scale(1.1);<br>}<br><br>.Btn-group{<br>    margin-top: 1rem;<br>    display: flex;<br>    gap: 18px;<br>}<br>.Btn-group span i{<br>    padding: 4px 4px;<br>    border: 1px solid;<br>    font-size: 24px;<br>    color: #fff;<br>    border-radius: 20px;<br>    cursor: pointer;<br>    transition: all ease-in-out 0.8s;<br>}<br><br>.Btn-group span i:hover{<br>    background-color: #fff;<br>    color: #191919;<br>    border: none;<br>}</pre><h4>Step 3: Adding JavaScript for Functionality</h4><p>Finally, add JavaScript to bring the slider to life. This script will handle the slide transitions and navigation functionality:</p><pre>let scrollContainer = document.querySelector(&quot;.gallery&quot;);<br>let topBtn = document.getElementById(&quot;topBtn&quot;)<br>let downBtn = document.getElementById(&quot;downBtn&quot;);<br><br><br>scrollContainer.addEventListener(&quot;wheel&quot;,(e)=&gt;{<br>e.preventDefault();<br>scrollContainer.style.scrollBehavior = &quot;auto&quot;;<br>scrollContainer.scrollTop += e.deltaY;<br>})<br><br><br>topBtn.addEventListener(&quot;click&quot;,()=&gt;{<br>    scrollContainer.style.scrollBehavior = &quot;smooth&quot;;<br>    scrollContainer.scrollTop  += 610;<br>})<br>downBtn.addEventListener(&quot;click&quot;,()=&gt;{<br>    scrollContainer.style.scrollBehavior = &quot;smooth&quot;;<br>    scrollContainer.scrollTop  -= 600;<br>})</pre><h3>Enhancements and Advanced Features</h3><p>The video also suggests possible enhancements to the basic slider, such as:</p><ul><li>3D Transitions: Adding 3D effects to the slide transitions using CSS transformations.</li><li>Parallax Effects: Implementing parallax scrolling to give a depth effect.</li><li>Advanced Animations: Using libraries like GSAP (GreenSock Animation Platform) to create more complex animations.</li></ul><blockquote><strong><em>If You need this type of content to comment “Need”, I make new videos using 3D animation and Parallax Effects, GSAP use.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f54d6e7d2f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an Anime-Inspired Lofi Login Page with HTML, CSS, and Glass Effect]]></title>
            <link>https://medium.com/@chauhanomprakash7206/creating-an-anime-inspired-lofi-login-page-with-html-css-and-glass-effect-6b49eb3c1d24?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b49eb3c1d24</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[anime]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 12:25:25 GMT</pubDate>
            <atom:updated>2024-02-12T12:25:25.712Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of web design, creativity knows no bounds. From sleek and minimalist layouts to vibrant and animated interfaces, designers constantly push the boundaries to create captivating user experiences. One such trend that has gained popularity is the integration of anime-inspired aesthetics into web design, often accompanied by soothing lo-fi vibes. In this tutorial, we’ll explore how to craft a visually stunning anime-style Lofi login page using HTML and CSS, with the added flair of a glass effect to elevate its appeal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*IHlWPrfSVt_cn4EaDQ7sig.gif" /></figure><h3>Setting the Stage: Understanding the Concept</h3><p>Before diving into the technical aspects, let’s grasp the essence of what we aim to achieve. Anime aesthetics are characterized by vibrant colors, playful illustrations, and dynamic visuals. Paired with the calming ambiance of Lofi music, this style creates a nostalgic and immersive atmosphere, reminiscent of cozy cafe scenes or late-night study sessions. Our goal is to encapsulate this mood within a login page, inviting users into a world of tranquility and creativity.</p><blockquote>Please watch my YouTube for this login page creation and support meDon’t forget to like, and subscribe. 🙏</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fdnyr7jM7Lmw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ddnyr7jM7Lmw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fdnyr7jM7Lmw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6235c8eac29333605bd746f5fac2f5e/href">https://medium.com/media/d6235c8eac29333605bd746f5fac2f5e/href</a></iframe><h3>Getting Started: HTML Structure</h3><p>We’ll begin by laying the foundation with HTML. Our login page will consist of essential elements such as a form for user input and a background image to set the tone. Here’s a basic structure to start with:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Anime Lofi Login Page&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;div class=&quot;main&quot;&gt;<br>    &lt;header class=&quot;header&quot;&gt;<br>        &lt;a href=&quot;#&quot; class=&quot;logo&quot;&gt;Logo&lt;/a&gt;<br>        &lt;nav class=&quot;navbar&quot;&gt;<br>            &lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;<br>            &lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;<br>            &lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;<br>            &lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;<br>            &lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;<br>        &lt;/nav&gt;<br>    &lt;/header&gt;<br>&lt;video autoplay loop muted plays-inline class=&quot;vid&quot; &gt;<br>    &lt;source src=&quot;./sharecs.net-xNap-After-School.mp4&quot; &gt;<br>&lt;/video&gt;<br>    &lt;div class=&quot;card&quot;&gt;<br>          &lt;form&gt;<br>            &lt;h1&gt;Login Here&lt;/h1&gt;<br>            &lt;div class=&quot;inputbox&quot;&gt;<br>                &lt;ion-icon name=&quot;mail-outline&quot;&gt;&lt;/ion-icon&gt;<br>                &lt;input type=&quot;email&quot; required&gt;<br>                &lt;label for=&quot;&quot;&gt;Email&lt;/label&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;inputbox&quot;&gt;<br>                &lt;ion-icon name=&quot;lock-closed-outline&quot;&gt;&lt;/ion-icon&gt;<br>                &lt;input type=&quot;password&quot; required&gt;<br>                &lt;label for=&quot;&quot;&gt;Password&lt;/label&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;forget&quot;&gt;<br>                &lt;label for=&quot;&quot;&gt;&lt;input type=&quot;checkbox&quot;&gt;Remember Me&lt;/label&gt;<br>              &lt;a href=&quot;#&quot;&gt;Forget Password&lt;/a&gt;<br>            &lt;/div&gt;<br>            &lt;button&gt;Log in&lt;/button&gt;<br>            &lt;div class=&quot;register&quot;&gt;<br>                &lt;p&gt;Don&#39;t have a account &lt;a href=&quot;#&quot;&gt;Register&lt;/a&gt;&lt;/p&gt;<br>            &lt;/div&gt;<br>        &lt;/form&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Styling Magic: CSS Enhancements</h3><p>Now, let’s sprinkle some CSS magic to breathe life into our login page. We’ll incorporate anime-inspired visuals, such as soft gradients and playful fonts, to create a cozy atmosphere. Additionally, we’ll implement a glass effect to add depth and intrigue. Here’s a snippet of CSS to get started:</p><blockquote><strong><em>The background video link is the last of this post scroll down and download.</em></strong></blockquote><pre>@import url(https://medium.com/&quot;https://fonts.googleapis.com/css2?family=Anton&amp;family=Bebas+Neue&amp;family=Hind+Siliguri&amp;family=Roboto:wght@500&amp;display=swap&quot;);<br><br>* {<br>  margin: 0;<br>  padding: 0;<br>  box-sizing: border-box;<br>  overflow: hidden;<br>  text-decoration: none;<br>  font-family: &quot;Hind Siliguri&quot;, sans-serif;<br>}<br>body {<br>  width: 100%;<br>  height: 100vh;<br><br>}<br>.header {<br>  position: fixed;<br>  z-index: 12;<br>  top: 0;<br>  left: 0;<br>  width: 100%;<br>  padding: 20px 100px;<br>  background: rgba(255, 255, 255, 0.1);<br>  display: flex;<br>  justify-content: space-between;<br>  align-items: center;<br>  backdrop-filter: blur(10px);<br>  border-bottom: 2px solid rgba(255, 255, 255, 0.2);<br>}<br>.header::before {<br>  content: &quot;&quot;;<br>  position: absolute;<br>  top: 0;<br>  left: -100%;<br>  width: 100%;<br>  height: 100%;<br>  background: linear-gradient(<br>    90deg,<br>    transparent,<br>    rgba(255, 255, 255, 0.4),<br>    transparent<br>  );<br>  transition: 0.5s;<br>}<br>.header:hover::before {<br>  left: 100%;<br>}<br>.logo {<br>  color: #fff;<br>  font-size: 25px;<br>  text-decoration: none;<br>  font-weight: 600;<br>  cursor: default;<br>}<br>.navbar a {<br>  color: #fff;<br>  font-size: 18px;<br>  text-decoration: none;<br>  margin-left: 35px;<br>  transition: 0.3s;<br>}<br>.navbar a:hover {<br>  color: #f00;<br>}<br><br>.main {<br>  width: 100%;<br>  height: 100vh;<br>  background: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>}<br>.vid {<br>  position: absolute;<br>  <br>}<br>.main .card {<br>  border: 1px solid rgba(255, 255, 255, 0.15);<br>  width: 500px;<br>  height: 500px;<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>  border-radius: 12px;<br>  background: rgba(255, 255, 255, 0.349);<br>  backdrop-filter: blur(7px);<br>  box-shadow: 0 25px 45px rgba(0, 1, 0, 0.1);<br>}<br><br>h1 {<br>  font-size: 2rem;<br>  color: #fff;<br>  text-align: center;<br>}<br><br>.inputbox {<br>  position: relative;<br>  margin: 30px 0;<br>  max-width: 310px;<br>  border-bottom: 2px solid #fff;<br>}<br><br>.inputbox label {<br>  position: absolute;<br>  top: 50%;<br>  left: 5px;<br>  transform: translateY(-50%);<br>  color: #fff;<br>  font-size: 1rem;<br>  pointer-events: none;<br>  transition: all 0.5s ease-in-out;<br>}<br><br>input:focus ~ label,<br>input:valid ~ label {<br>  top: -5px;<br>}<br><br>.inputbox input {<br>  width: 100%;<br>  height: 60px;<br>  background: transparent;<br>  border: none;<br>  outline: none;<br>  font-size: 1rem;<br>  padding: 0 35px 0 5px;<br>  color: #fff;<br>}<br><br>.inputbox ion-icon {<br>  position: absolute;<br>  right: 8px;<br>  color: #fff;<br>  font-size: 1.2rem;<br>  top: 20px;<br>}<br><br>.forget {<br>  margin: 35px 0;<br>  font-size: 0.85rem;<br>  color: #fff;<br>  display: flex;<br>  justify-content: space-between;<br>}<br><br>.forget label {<br>  display: flex;<br>  align-items: center;<br>}<br><br>.forget label input {<br>  margin-right: 3px;<br>}<br><br>.forget a {<br>  color: #fff;<br>  text-decoration: none;<br>  font-weight: 600;<br>}<br><br>.forget a:hover {<br>  text-decoration: underline;<br>}<br><br>button {<br>  width: 100%;<br>  height: 40px;<br>  border-radius: 40px;<br>  background-color: rgb(255, 255, 255, 1);<br>  border: none;<br>  outline: none;<br>  cursor: pointer;<br>  font-size: 1rem;<br>  font-weight: 600;<br>  transition: all 0.4s ease;<br>}<br><br>button:hover {<br>  background-color: rgb(255, 255, 255, 0.5);<br>}<br><br>.register {<br>  font-size: 0.9rem;<br>  color: #fff;<br>  text-align: center;<br>  margin: 25px 0 10px;<br>}<br><br>.register p a {<br>  text-decoration: none;<br>  color: #fff;<br>  font-weight: 600;<br>}<br><br>.register p a:hover {<br>  text-decoration: underline;<br>}</pre><p><strong>Video download link:</strong> <a href="https://drive.google.com/file/d/12IBiQSwg95R2g6eDGgW_IUMv27n75g_O/view?usp=sharing">Click Here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b49eb3c1d24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Animated Ring Login Page with HTML and CSS: A Step-by-Step Tutorial]]></title>
            <link>https://medium.com/@chauhanomprakash7206/create-animated-ring-login-page-with-html-and-css-a-step-by-step-tutorial-6fd3146ff912?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fd3146ff912</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 12:14:12 GMT</pubDate>
            <atom:updated>2024-02-12T12:14:12.103Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital age, creating an engaging and visually appealing login page is essential for any website or application. A well-designed login page enhances user experience and leaves a lasting impression on visitors. One popular trend in web design is the use of animations to captivate users from the moment they land on a page. In this article, we’ll explore how to create an animated ring login page using HTML and CSS, offering a simple yet attractive solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*L_uYdGu27oUO4hbf1SE9dw.gif" /></figure><h3>Why Animation Matters</h3><p>Before diving into the technical details, let’s briefly discuss why animation is crucial for a login page. Animation adds life and interactivity to static elements, making them more engaging and memorable. A subtle animation can guide users’ attention, provide feedback, and create a seamless transition between different interaction states. Moreover, animation can convey a sense of professionalism and modernity, reflecting positively on your brand or website.</p><p><strong><em>I suggest you watch my video on YouTube for a better understanding.🙏🙏 like, share, and subscribe for the next video.</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxCBdL3aOTnU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxCBdL3aOTnU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxCBdL3aOTnU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0978a2c283b3e4297ddb073cf69926ea/href">https://medium.com/media/0978a2c283b3e4297ddb073cf69926ea/href</a></iframe><h3>Getting Started: HTML Structure</h3><p>First, let’s set up the basic structure of our login page using HTML. We’ll create a simple form with input fields for username and password, along with a submit button.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Animated Ring Login Page&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;div class=&quot;ring&quot;&gt;<br>  &lt;i style=&quot;--clr:#00ff0a;&quot;&gt;&lt;/i&gt;<br>  &lt;i style=&quot;--clr:#ff0057;&quot;&gt;&lt;/i&gt;<br>  &lt;i style=&quot;--clr:#fffd44;&quot;&gt;&lt;/i&gt;<br>  &lt;div class=&quot;login&quot;&gt;<br>    &lt;h2&gt;Login&lt;/h2&gt;<br>    &lt;div class=&quot;inputBx&quot;&gt;<br>      &lt;input type=&quot;text&quot; placeholder=&quot;Username&quot;&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;inputBx&quot;&gt;<br>      &lt;input type=&quot;password&quot; placeholder=&quot;Password&quot;&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;inputBx&quot;&gt;<br>      &lt;input type=&quot;submit&quot; value=&quot;Sign in&quot;&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;links&quot;&gt;<br>      &lt;a href=&quot;#&quot;&gt;Forget Password&lt;/a&gt;<br>      &lt;a href=&quot;#&quot;&gt;Signup&lt;/a&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Styling with CSS</h3><p>Now, let’s add some style to our login page using CSS. We’ll create a visually appealing design and implement the animated ring effect using CSS animations.</p><pre>@import url(https://medium.com/&quot;https://fonts.googleapis.com/css2?family=Quicksand:wght@300&amp;display=swap&quot;);<br>* {<br>  margin: 0;<br>  padding: 0;<br>  box-sizing: border-box;<br>  font-family: &quot;Quicksand&quot;, sans-serif;<br>}<br>body {<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>  min-height: 100vh;<br>  background: #111;<br>  width: 100%;<br>  overflow: hidden;<br>}<br>.ring {<br>  position: relative;<br>  width: 500px;<br>  height: 500px;<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>}<br>.ring i {<br>  position: absolute;<br>  inset: 0;<br>  border: 2px solid #fff;<br>  transition: 0.5s;<br>}<br>.ring i:nth-child(1) {<br>  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;<br>  animation: animate 6s linear infinite;<br>}<br>.ring i:nth-child(2) {<br>  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;<br>  animation: animate 4s linear infinite;<br>}<br>.ring i:nth-child(3) {<br>  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;<br>  animation: animate2 10s linear infinite;<br>}<br>.ring:hover i {<br>  border: 6px solid var(--clr);<br>  filter: drop-shadow(0 0 20px var(--clr));<br>}<br>@keyframes animate {<br>  0% {<br>    transform: rotate(0deg);<br>  }<br>  100% {<br>    transform: rotate(360deg);<br>  }<br>}<br>@keyframes animate2 {<br>  0% {<br>    transform: rotate(360deg);<br>  }<br>  100% {<br>    transform: rotate(0deg);<br>  }<br>}<br>.login {<br>  position: absolute;<br>  width: 300px;<br>  height: 100%;<br>  display: flex;<br>  justify-content: center;<br>  align-items: center;<br>  flex-direction: column;<br>  gap: 20px;<br>}<br>.login h2 {<br>  font-size: 2em;<br>  color: #fff;<br>}<br>.login .inputBx {<br>  position: relative;<br>  width: 100%;<br>}<br>.login .inputBx input {<br>  position: relative;<br>  width: 100%;<br>  padding: 12px 20px;<br>  background: transparent;<br>  border: 2px solid #fff;<br>  border-radius: 40px;<br>  font-size: 1.2em;<br>  color: #fff;<br>  box-shadow: none;<br>  outline: none;<br>}<br>.login .inputBx input[type=&quot;submit&quot;] {<br>  width: 100%;<br>  background: #0078ff;<br>  background: linear-gradient(45deg, #ff357a, #fff172);<br>  border: none;<br>  cursor: pointer;<br>}<br>.login .inputBx input::placeholder {<br>  color: rgba(255, 255, 255, 0.75);<br>}<br>.login .links {<br>  position: relative;<br>  width: 100%;<br>  display: flex;<br>  align-items: center;<br>  justify-content: space-between;<br>  padding: 0 20px;<br>}<br>.login .links a {<br>  color: #fff;<br>  text-decoration: none;<br>}</pre><h3>Bringing it All Together</h3><p>By combining our HTML structure with the CSS styling, we’ve created a visually appealing login page with an animated ring effect. Users will be drawn to the interactive element of the login button, enhancing their overall experience.</p><p><em>keyword:</em></p><p>animated login page in html and css<br>html animated banner<br>animated login and signup form html css<br>how to add an animated background in html</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fd3146ff912" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monetizing Creativity: How InVideo AI Boosts My Monthly Earnings to $1,000 Create 30 short videos…]]></title>
            <link>https://medium.com/@chauhanomprakash7206/monetizing-creativity-how-invideo-ai-boosts-my-monthly-earnings-to-1-000-create-30-short-videos-49b37bd75030?source=rss-54751825f64e------2</link>
            <guid isPermaLink="false">https://medium.com/p/49b37bd75030</guid>
            <category><![CDATA[creators]]></category>
            <category><![CDATA[monetization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[omprakash]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 16:13:03 GMT</pubDate>
            <atom:updated>2024-01-18T16:13:03.218Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monetizing Creativity: How InVideo AI Boosts My Monthly Earnings to $1,000 Create 30 short videos in one click</h3><p>In the dynamic global of content advent, turning ardor into earnings is a goal many aspire to gain. Thanks to InVideo AI, now not only has my innovative technique been streamlined, but my monthly earnings have also soared to a steady $1,000. In this text, I’ll proportion how InVideo AI has become a vital tool in my adventure to monetize creativity.</p><p>Are you ready to elevate your YouTube game? 🚀 Unleash your creativity and splash with InVideo, the ultimate video creation platform! 🎬</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlnDS2VUB7G5tJKvtkqm8w.png" /></figure><h4>🌟 Why InVideo? 🌟</h4><p>✨ 30 Videos in 30 Days Challenge: Join the InVideo challenge and transform your YouTube channel with 30 visually stunning videos in just 30 days! 📆🎉</p><p>🚀 How to Get Started:</p><p>1️⃣ Sign Up for FREE: Start your <a href="http://invideo.sjv.io/GmdaaE">InVideo </a>journey by signing up for free. No hidden charges, just pure creative freedom! 🆓🌐</p><p>Sign Up:<a href="http://invideo.sjv.io/GmdaaE"> Click Here</a> for “Free Extra Bounce”💹</p><blockquote>First to your free Version and after grow your video and buy to <strong>Plus and recommaned you start plus version more help you</strong></blockquote><p>2️⃣ Choose Your Challenge: Select the “30 Videos in 30 Days Challenge” and kickstart your content creation spree! 🚀🏆</p><p>3️⃣ Explore Templates: Dive into our template library and pick the perfect style for your videos. From attention-grabbing intros to captivating outros, we’ve got it all! 🌈🎥</p><p>4️⃣ Create, Edit, and Export: Let your creativity flow! Craft, edit, and export your videos with ease. InVideo makes the entire process a breeze! 🌪️💻</p><p>5️⃣ Share and Shine: Upload your masterpieces to YouTube and watch your channel skyrocket. Get ready for a flood of likes, shares, and new subscribers! 🚀👥</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSZ0GPzZPmMU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSZ0GPzZPmMU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSZ0GPzZPmMU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bef6cc2a068139bcdbda8474664cc58c/href">https://medium.com/media/bef6cc2a068139bcdbda8474664cc58c/href</a></iframe><h3>Here Important Point For Automatiation AI</h3><h3>The Real Challenge: Creating Viral Motivational Videos</h3><p>Creating viral motivational videos might seem daunting, requiring tons of editing time and practice. But fear not! I’ll reveal how I crafted these videos right from my phone with no editing software needed.</p><h3>Introducing Invideo AI: The Chat GPT of Video Making</h3><p>Say hello to Invideo AI, the Chat GPT of video making! This advanced AI app crafts videos from your text prompts, making video creation as easy as chatting. Let’s walk through how it works.</p><p><strong>Get Invideo AI:</strong> Head over to the video description and find the link to Invideo AI. Install the app, and you’ll be greeted with a sleek interface.</p><p><strong>Drop Your Text Prompt:</strong> In the app, drop in your text prompt. The prompt is the secret sauce to an awesome video. Sharpen those prompting skills!</p><p><strong>Generate Your Video: </strong>Hit “Generate Video,” and the app will prompt you to select audience type, look and feel, and platform. Tailor it to your preferences.</p><p><strong>Explore Customization:</strong> Invideo AI allows you to guide the app for specific adjustments. Change scenes, voiceovers, background music, and more. If the output isn’t to your taste, hit “Regenerate” for a different take.</p><p><strong>Edit and Personalize with Ease</strong><br>Not satisfied with the generated video? No problem! Edit scenes, upload your media, or choose from Invideo AI’s extensive stock library. Make tweaks, replace scenes, and even adjust the script to your liking.</p><p><strong>Download Your Masterpiece</strong><br>Once satisfied, click “Export As,” choose your export settings, and download your video. Whether you’re creating content for TikTok or YouTube shorts, Invideo AI has you covered.</p><h3>Unlock YouTube Short Creativity Program Eligibility</h3><p>For those not in eligible countries, the solution is simple: get a US or UK-based YouTube Short account. You can buy one from online marketplaces or ask friends residing in those countries. Follow these steps carefully to avoid detection and removal from the YouTube ShortCreativity Program.</p><blockquote>Here Some Proof I use this trick 4 Months</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*EiVfo34FcOzkUENO9TrrAA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49b37bd75030" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>