<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lakshita Kumawat</title>
    <description>The latest articles on DEV Community by Lakshita Kumawat (@lakshita_kumawat).</description>
    <link>https://dev.to/lakshita_kumawat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1741476%2F47504ad4-a42d-40e7-9837-3ea92eba7000.png</url>
      <title>DEV Community: Lakshita Kumawat</title>
      <link>https://dev.to/lakshita_kumawat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lakshita_kumawat"/>
    <language>en</language>
    <item>
      <title>The Mistakes of Learning Programmers</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Thu, 31 Jul 2025 09:31:33 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/the-mistakes-of-learning-programmers-e1e</link>
      <guid>https://dev.to/lakshita_kumawat/the-mistakes-of-learning-programmers-e1e</guid>
      <description>&lt;p&gt;Hi there! 👋&lt;/p&gt;

&lt;p&gt;After a long time, I'm finally writing a post — and I’ll also tell you why. It’s about a mistake that broke my confidence, and I don’t want any other learning developer to face the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mistakes Learning Programmers Make
&lt;/h2&gt;

&lt;p&gt;There are many mistakes developers face while learning, but I want to talk about &lt;em&gt;my&lt;/em&gt; mistake — one I can't forget. Sadly, I see many other devs making the same one. 😕&lt;/p&gt;

&lt;p&gt;We all know new languages and libraries are released almost every day. Some of them become popular, and beginner devs get attracted to them. They jump in and start learning something new, while leaving the language they were already learning incomplete.&lt;/p&gt;

&lt;p&gt;It’s the same as abandoning an old project because it became “too complicated,” and starting a new one instead of finishing what you started.&lt;/p&gt;

&lt;p&gt;This is called &lt;strong&gt;shiny object syndrome&lt;/strong&gt; — where your mind constantly chases trendy new things.&lt;/p&gt;




&lt;p&gt;In my case, after learning &lt;strong&gt;JavaScript&lt;/strong&gt;, I jumped straight into &lt;strong&gt;React&lt;/strong&gt; without building beginner-level projects — just because React was popular. That was my second big mistake: &lt;strong&gt;not building projects after learning a language.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Projects are the best way to test your knowledge. Plus, they’re actually fun to build! 😁&lt;/p&gt;

&lt;p&gt;While I was still learning React, someone asked me to build a website using &lt;strong&gt;Next.js&lt;/strong&gt;. So I started learning that. Then they asked me to convert it to &lt;strong&gt;Astro&lt;/strong&gt; — so I began learning Astro too… and ended up leaving it halfway. 😑&lt;/p&gt;

&lt;p&gt;After that, I got distracted by &lt;strong&gt;React Three Fiber&lt;/strong&gt; (a library for creating 3D websites — because 3D websites look so cool 😅). I learned a lot, but eventually I found myself confused:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"What should I continue with? React? Next.js? Astro?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I chose to stick with React for a while, but eventually I stopped touching my PC cause I realized I couldn't even make a simple project anymore. That was a low point for me. 🤧&lt;/p&gt;




&lt;h2&gt;
  
  
  💭 Why I Started Again
&lt;/h2&gt;

&lt;p&gt;After a few months, I asked myself: &lt;strong&gt;Why did I start coding in the first place?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because I love computers. Because I want to learn more.&lt;br&gt;&lt;br&gt;
Because I want to become the best programmer I can be — and I knew I couldn’t just quit.&lt;/p&gt;

&lt;p&gt;So I went back to the basics. I started watching tutorials again, and I began building &lt;strong&gt;JavaScript&lt;/strong&gt; projects.&lt;/p&gt;

&lt;p&gt;Right now, I’m focused on getting better at JS — and then, I’ll come back to React. 😤&lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ Conclusion
&lt;/h2&gt;

&lt;p&gt;I don’t want other devs to make the same mistake I did.&lt;/p&gt;

&lt;p&gt;My basics weren’t strong, and I kept getting distracted by every new library that came along. 😞&lt;br&gt;&lt;br&gt;
Now, I’ve promised myself — &lt;strong&gt;i will never do this mistake again&lt;/strong&gt;. I will build strong foundations first, and then move forward.&lt;/p&gt;

&lt;p&gt;I hope other devs reading this will avoid the mistakes I made.&lt;/p&gt;

&lt;p&gt;Thanks for reading my post, and &lt;strong&gt;happy coding to all!&lt;/strong&gt; 🌈&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>programming</category>
      <category>beginners</category>
      <category>developers</category>
    </item>
    <item>
      <title>A Minimal but Awesome We_Coded Landing page</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sat, 22 Mar 2025 12:00:12 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/a-minimal-wecoded-landing-page-5hhb</link>
      <guid>https://dev.to/lakshita_kumawat/a-minimal-wecoded-landing-page-5hhb</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/wecoded"&gt;WeCoded Challenge&lt;/a&gt;: Celebrate in Code&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My WeCoded Landing Page
&lt;/h2&gt;

&lt;p&gt;For this challenge, i made a minimal landing page with big font(cause big font looks good). I cant miss such a big challenge😊. I edited the post because i made some changes in ui.&lt;/p&gt;

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

&lt;p&gt;You can click on the link to view the website and project.&lt;/p&gt;

&lt;p&gt;Demo Link: &lt;a href="https://lakshita-kumawat.github.io/We_coded/" rel="noopener noreferrer"&gt;click here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Project Link: &lt;a href="https://github.com/Lakshita-Kumawat/We_coded" rel="noopener noreferrer"&gt;click here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Screenshot:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffnyinhie35zchhq1sogt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffnyinhie35zchhq1sogt.jpg" alt="Image description" width="720" height="1334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built it with html, css and javascript&lt;/p&gt;

&lt;p&gt;1) &lt;strong&gt;Html&lt;/strong&gt;: for making structure of website.&lt;/p&gt;

&lt;p&gt;2) &lt;strong&gt;Css&lt;/strong&gt;: for styling purposes and animation. I used the color and images given in the post. Also,all svg used in project in taken from &lt;strong&gt;svg repo&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;3) &lt;strong&gt;Javascript&lt;/strong&gt;: for fetching articles from the api, pagination and also for starting text animations (which I watched on youtube 😅).&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;p&gt;1) Responsive design&lt;br&gt;
2) Animations for header&lt;br&gt;
3) Go to top button&lt;br&gt;
4) A Responsive bento grid&lt;br&gt;
5) Fetch article data from api&lt;/p&gt;

&lt;p&gt;I have tried my best for this challenge like the always.&lt;br&gt;
Thank you to visit my post 😊. Happy coding 🌈&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>wecoded</category>
      <category>dei</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Is there Any Unique Project Ideas left?</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sun, 26 Jan 2025 05:39:56 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/is-there-any-unique-project-ideas-left-1jl3</link>
      <guid>https://dev.to/lakshita_kumawat/is-there-any-unique-project-ideas-left-1jl3</guid>
      <description>&lt;p&gt;Hi dev! We all know that to become a good dev we need to be &lt;strong&gt;unique&lt;/strong&gt; in this competitive world and we all try to make new projects which helps people.&lt;/p&gt;

&lt;p&gt;But when it comes to projects, some dev says you should make clones of popular apps and some says you should try to make somethings unique.&lt;/p&gt;

&lt;h2&gt;
  
  
  What problem I am facing
&lt;/h2&gt;

&lt;p&gt;As a learning webdev, I think making clones of popular apps is a great way to get experience.&lt;/p&gt;

&lt;p&gt;But the problem is &lt;strong&gt;unique ideas&lt;/strong&gt;. Not only me but other learning devs also face the same problem to get unique ideas.&lt;/p&gt;

&lt;p&gt;When I think to make something unique, no ideas comes in my mind cause there are many things which are already built.&lt;/p&gt;

&lt;p&gt;For example, if you search a notes app in playstore, then you can see thousands of app which are almost same, just with some different features.&lt;/p&gt;

&lt;p&gt;There are thousands of softwares and app which are already built and its hard to find somthing unique for learning devs like me. When i think about an idea and search it online, its already made.&lt;/p&gt;

&lt;p&gt;And that why, I want to ask all the dev, how you get ideas of unique project? Which unique projects you have built yet? Or you are also like me, who is looking for a unique idea that people will remember you for? Comment your answer. It will help a lot&lt;/p&gt;

&lt;p&gt;Also happy coding🌈&lt;/p&gt;

</description>
      <category>developers</category>
      <category>programming</category>
      <category>help</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Typescript setup and Basics</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sun, 01 Dec 2024 05:27:37 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/getting-started-with-typescript-492k</link>
      <guid>https://dev.to/lakshita_kumawat/getting-started-with-typescript-492k</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hi there! In this post we are going to dive in the basics of typescript💧. So without wasting time lets get started ⏱️.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;Before starting lets setup.&lt;/p&gt;

&lt;p&gt;1) Open the terminal&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g typescript
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will download typescript in your pc. If you already install typescript then you can also check your version with&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tsc -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2) Make a folder for code.&lt;/p&gt;

&lt;p&gt;You can make the folder anywhere. &lt;br&gt;
And now open it with vscode or any editor you use. Now, create &lt;code&gt;index.ts&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;3) Initialize typescript&lt;/p&gt;

&lt;p&gt;Open the terminal in the same folder and write&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tsc init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now its done. Lets get to coding. Also if you are using vscode you can install code runner extension for running the file output.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Typescript ?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;TypeScript is JavaScript with syntax for types.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.&lt;/p&gt;

&lt;p&gt;Now you will say ok I get but I dont get it 😅&lt;/p&gt;

&lt;p&gt;For now just keep it mind that &lt;strong&gt;typescript is javascript with type&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Now lets first write a small ts code then discuss about the difference between Ts and Js&lt;/p&gt;

&lt;h2&gt;
  
  
  Write the first typescript code
&lt;/h2&gt;

&lt;p&gt;Now, open your &lt;code&gt;index.ts&lt;/code&gt; file and write the code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  let str : string = "Hello world";
  console.log(str);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code we are just making a variable &lt;code&gt;str&lt;/code&gt; and annotating it with &lt;code&gt;:string&lt;/code&gt; . If you add &lt;code&gt;:string&lt;/code&gt;with any variable then you can only set a string value to that variable.&lt;/p&gt;

&lt;p&gt;It means that we are giving the &lt;code&gt;str&lt;/code&gt; variable a type of string. And this is called type annotation. Thats why typescript is javascipt with syntax of &lt;strong&gt;type&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Dont worry about the code right now. We will cover everything one by one and also the type annotation again for a better understanding with defination.&lt;/p&gt;

&lt;p&gt;Now lets check the output. Simply open your vscode extension and search code runner extension and download it. Now click on the play button on the top right side of the screen. So you will see the result that is &lt;strong&gt;Hello world&lt;/strong&gt;. And that the first typescript code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Difference between Ts and Js
&lt;/h2&gt;

&lt;p&gt;Now, I think after writing the first code you have understand the difference that in type script we define &lt;code&gt;type&lt;/code&gt; to the variable like string, number, boolean, etc. &lt;/p&gt;

&lt;p&gt;Those who have learned languages like C or C++ can relate that when we define a variable then we write &lt;code&gt;int&lt;/code&gt; , &lt;code&gt;str&lt;/code&gt; , etc. to set the variable type and then we cant assign any another value to that.&lt;/p&gt;

&lt;p&gt;But now you will think is it only limited to variable? So the answer is No. It is not limited to variable. You can set type on function, object, and much more. Also you can also create your own type! &lt;/p&gt;

&lt;p&gt;Now, you will be like we want more examples🧐. Ok, lets annotate the function parameters.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    function add(x:number, y:number){
        return x+y;
    }
    const res= add(4,5);
    console.log(res);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, check the output. It should be 9. So here we are annotation mean defining type of number to the add function parameter. But if you give a &lt;code&gt;string&lt;/code&gt;  inside the add parameter then you will get an error.&lt;/p&gt;

&lt;p&gt;Also, if you give less parameter to a function then you will also get a error.&lt;/p&gt;

&lt;p&gt;Thats, a big advantage that it will give you an error if you put a wrong value or give less parameter then required. And you dont need to look for those small  bugs. It also make the code maintainable. That why we use typescript 😁.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So in this post we learn about typescript from beginning and learned how to install it, difference between ts and js and also the advantage. We also write the first code.&lt;/p&gt;

&lt;p&gt;Now, I think it is clear why we use typescript. Some people might bored reading that long post😅. If you have any doubt you can ask. And also suggest for the next post ideas in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>typescript</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>My Experience Of First Time Participating in Hacktoberfest 2024</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sat, 26 Oct 2024 15:41:08 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/my-experience-on-first-time-participating-in-hacktoberfest-2024-blf</link>
      <guid>https://dev.to/lakshita_kumawat/my-experience-on-first-time-participating-in-hacktoberfest-2024-blf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest"&gt;2024 Hacktoberfest Writing challenge&lt;/a&gt;: Contributor Experience&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🔥 Introduction
&lt;/h2&gt;

&lt;p&gt;This was my first time to participate in hacktobefest and also the first time I participated in a open source competition. I learned a lot from it and I am happy that my 2 pr has been accepted😃&lt;/p&gt;

&lt;h2&gt;
  
  
  ❄️ How I heard about hacktoberfest?
&lt;/h2&gt;

&lt;p&gt;I heard about it from &lt;strong&gt;DEV&lt;/strong&gt; community. As I love to participate in competiton organised by &lt;strong&gt;DEV&lt;/strong&gt; community, I was looking for the upcoming competition and I found hacktoberfest competition. After that I google about it and find more information about it. &lt;/p&gt;

&lt;p&gt;I also found some video of unboxing hacktoberfest 2022 swags. But I was a bit sad about hearing that this time the participates will only get digital badges cause I never get any swags on completing  competition (actually this was my first time participating in a big competition and i want to flex them to my friends😅)&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡️ My journey
&lt;/h2&gt;

&lt;p&gt;I want to share one thing. Before participating in this competition, when I saw a repo with many contributers I thought that they first form a team and only the members can contribute. Well, I was wrong about that 🤔.&lt;/p&gt;

&lt;p&gt;Also I dont have idea about how to forking a repo or how to create a branch and the idea behind it. Also for updating my repo I use the vscode feature&lt;/p&gt;

&lt;p&gt;Now lets come on the point 😅&lt;/p&gt;

&lt;h2&gt;
  
  
  ⭐️ Registeration
&lt;/h2&gt;

&lt;p&gt;I registered for hacktoberfest on 13 october cause I was a little busy. After registering, I start finding a repo for contribution. I spend the whole day looking for the project 🥲. &lt;/p&gt;

&lt;h2&gt;
  
  
  ✨️ Finding a Repo for Contribution
&lt;/h2&gt;

&lt;p&gt;I want to contribute in a repo which are popular but when i saw the issue i was like what the hell is this?🥹 SDKs, unit test, bugs, etc. You know what i have 1 and half year experience but i have spend much time in frontend. I also learned nodejs and express but i haven't worked much with Api and those repos also have some modules that i never heard of. All this opened my eyes 😶. Now, i feel i am a bad programmer 😭. But when you are a student, you dont get enough time for coding 😮‍💨.&lt;/p&gt;

&lt;p&gt;So, my whole day was waste. On the second day, I finally find a repo named &lt;strong&gt;Mid West Pumkin&lt;/strong&gt;. And i get assigned for &lt;strong&gt;responsive layout&lt;/strong&gt;. I was very happy about that 🥳. This was the first time I was assigned. Then, the next day I complete the work and send the first pr. My second pr was also on responsive layouts . The third issue was adding a dark mode with local storage. I choose this because i never worked with local storage before.&lt;/p&gt;

&lt;p&gt;My first three prs was on the same repo. Later, I found a repo named &lt;strong&gt;Mini-projects&lt;/strong&gt;. I made a password strength checker and send a pr and it was also accepted 🥳.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎉 Achievements
&lt;/h2&gt;

&lt;p&gt;After my first pr was accepted by the maintainer, I got a badge on github. It was the &lt;strong&gt;pull shark&lt;/strong&gt;. I was very happy to get my first badge🤩. Also my two pr has been accepted and a got &lt;strong&gt;level 2 hacktoberfest badge&lt;/strong&gt;. Now, I am waiting for my remaining two pr to be accepted 🔥&lt;/p&gt;

&lt;p&gt;&lt;a href="https://holopin.io/@lakshitakumawat" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fholopin.me%2Flakshitakumawat" alt="An image of @lakshitakumawat's Holopin badges, which is a link to view their full Holopin profile" width="800" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🌈 Conclusion
&lt;/h2&gt;

&lt;p&gt;It was a nice experience. I see many troubles and issue but at the end I was able to submit 4 prs. Now, I hope my remaining two pr will be accepted too. Then, I can say with proud that a made a difference 🔥. I know my contributions are very small but it was the first time. But dont forget that &lt;strong&gt;Quantity is fun but Quality is key 🔑&lt;/strong&gt;. This quote help me at every point in the competition. And a big thanks to &lt;strong&gt;Digital Ocean&lt;/strong&gt; for organising Hacktoberfest ♥️&lt;/p&gt;

&lt;p&gt;Happy coding 🎉&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hacktoberfest</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Game Loop - One Byte Explainer</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Tue, 24 Sep 2024 06:25:58 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/game-loop-one-byte-explainer-18dk</link>
      <guid>https://dev.to/lakshita_kumawat/game-loop-one-byte-explainer-18dk</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/webgame"&gt;Web Game Challenge&lt;/a&gt;: One Byte Explainer&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;In simple words, Game loop is like when you play a &lt;strong&gt;pokemon rom&lt;/strong&gt;, you have to battle with the Gym leader until you win. This sometimes become annoying 😮‍💨&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;p&gt;Not only battle but every step in a game is game loop. There are different type of game loop . In a game loop, the main process are input,  update and render. These process makes the game playable.&lt;/p&gt;

&lt;p&gt;Its like when you hit a key, the program will look for the function and then render the result.&lt;/p&gt;

&lt;p&gt;For a more better example, when you press W on a keyboard, the program moves the player one step upwards and then changes the player current position to new position.&lt;/p&gt;

&lt;p&gt;That's how it works in simple word 😁 Hope this post will help you 😊&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamechallenge</category>
      <category>gamedev</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Html Canvas - One Byte Explainer</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Fri, 20 Sep 2024 04:12:15 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/html-canvas-one-byte-explainer-2kdj</link>
      <guid>https://dev.to/lakshita_kumawat/html-canvas-one-byte-explainer-2kdj</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/webgame"&gt;Web Game Challenge&lt;/a&gt;: One Byte Explainer&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;Html canvas is just like a painting canvas🌈. The difference is that you cant use brush on it 🖌. But &lt;strong&gt;not&lt;/strong&gt; only graphic, you can make video effect and game too!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>gamechallenge</category>
      <category>gamedev</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Frontend Challenge: Space Edition</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Fri, 13 Sep 2024 18:32:18 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/frontend-challenge-space-edition-2bb6</link>
      <guid>https://dev.to/lakshita_kumawat/frontend-challenge-space-edition-2bb6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/frontend-2024-09-04"&gt;Frontend Challenge v24.09.04&lt;/a&gt;, Glam Up My Markup: Space&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Do you want to learn about space?you are at right place. You can learn about space from this website. This is a website made with html, css and javascript💫&lt;/p&gt;

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

&lt;p&gt;Demo : &lt;a href="https://lakshita-kumawat.github.io/Frontend-Challenge-Space-Edition/" rel="noopener noreferrer"&gt;https://lakshita-kumawat.github.io/Frontend-Challenge-Space-Edition/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Github : &lt;a href="https://github.com/Lakshita-Kumawat/Frontend-Challenge-Space-Edition" rel="noopener noreferrer"&gt;https://github.com/Lakshita-Kumawat/Frontend-Challenge-Space-Edition&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;For this project, I first imagined the look of the website. I think it will not look good but it turned out better than my expection. For the header background I used a video which I found in pexels website. For the animation, I use gsap and also used swiper.js for the first time. I have completed this website in the last day🥵 so I was not able to add much elements but I have tried to keep the code clean and the website is also responsive&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I have learned new things from this competition and great memory for me and I think the website look good. Thank you for this challenge dev community🙂&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>frontendchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>My Favorite Recration : The Cat in the Room</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Fri, 02 Aug 2024 08:44:18 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/my-favorite-recration-the-cat-in-the-room-3677</link>
      <guid>https://dev.to/lakshita_kumawat/my-favorite-recration-the-cat-in-the-room-3677</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/frontend-2024-07-24"&gt;Frontend Challenge v24.07.24&lt;/a&gt;, CSS Art: Recreation.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspiration
&lt;/h2&gt;

&lt;p&gt;For my favorite recreation, I made a cat in room and the items in the room express my opinion towards programing. I know that cat does not looks like a cat 😅 but I tried my best and I think it is looking cute.&lt;/p&gt;

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

&lt;p&gt;You can see the website &lt;a href="https://lakshita-kumawat.github.io/Favorite-Recreation/" rel="noopener noreferrer"&gt;live&lt;/a&gt; from here and can see the code on my &lt;a href="https://github.com/Lakshita-Kumawat/Favorite-Recreation" rel="noopener noreferrer"&gt;github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is the image:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Funq311jepyjnpum4kjn3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Funq311jepyjnpum4kjn3.jpg" alt="Project image" width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;For this project, I used pure html and css. I used &lt;code&gt;div&lt;/code&gt;for all the items in the art and add styling to them. I make sure that it will look good on all device. I was confuse which things I should add in it. For this time I try to make it simple but that have much fun. I enjoyed it a lot!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I know my art look simple and small but it was much fun in making it. I have tried to express my opinion towards programming. I hope you liked it&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>css</category>
    </item>
    <item>
      <title>Glam Up My Markup Submission</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Thu, 01 Aug 2024 16:55:43 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/glam-up-my-markup-submission-55km</link>
      <guid>https://dev.to/lakshita_kumawat/glam-up-my-markup-submission-55km</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/frontend-2024-07-24"&gt;Frontend Challenge v24.07.24&lt;/a&gt;, Glam Up My Markup: Recreation&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;For this challenge, I built New York Cricket League website. I dont know much about cricket but I have tried my best to make it better. I have put much efforts in this website&lt;/p&gt;

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

&lt;p&gt;You can see it &lt;a href="https://lakshita-kumawat.github.io/Frontend-Challenge/" rel="noopener noreferrer"&gt;live&lt;/a&gt; from here and visit my code on &lt;a href="https://github.com/Lakshita-Kumawat/Frontend-Challenge" rel="noopener noreferrer"&gt;github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here are the images of website. I have modified and added a form in the join section which is not in these image:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkit7ggtai2hx1mikmwd0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkit7ggtai2hx1mikmwd0.jpg" alt="Project image" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8t3uo3tzzin7h9rpn9lt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8t3uo3tzzin7h9rpn9lt.jpg" alt="Project image" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx5j7tnrdi4dcivuqlx3w.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx5j7tnrdi4dcivuqlx3w.jpg" alt="Project image" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglnh1b0t8kwe49sff9m3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglnh1b0t8kwe49sff9m3.jpg" alt="Project image" width="800" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;For this website, I used pure css and javascript. I also used gsap library of javascript for the scroll animations. This is the first time I have used gsap library but I tried my best for the animations. I learned much about javascript from this challenge. I take the images from freepik and pngwings.&lt;br&gt;
I was not able to add more features in the website due to some reason so it looks simple but it was fun to participate!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This is the first time I have participated in a challenge but it was fun. I have learned much from this challenge. I have done my best for this website. So hope you will like it!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>frontendchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to make Animation in Css?</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sun, 14 Jul 2024 10:53:32 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/how-to-make-animation-in-css-1f97</link>
      <guid>https://dev.to/lakshita_kumawat/how-to-make-animation-in-css-1f97</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Today I will tell you how to make animation. We will see all the necessary animation property in this post. You can get the code on my &lt;a href="https://github.com/Lakshita-Kumawat/Animation-Tutorial" rel="noopener noreferrer"&gt;github&lt;/a&gt;. So Let's Get Started!!&lt;/p&gt;

&lt;h2&gt;
  
  
  Animation
&lt;/h2&gt;

&lt;p&gt;Animation are the property use to enhance the look of the website. It give a nice user interference and also use to show people the goal of the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Basic Animation
&lt;/h2&gt;

&lt;h2&gt;
  
  
  First Animation: Changing the color of a square
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="square"&amp;gt;Square&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here I make a square of blue color and then give it some styles. You can take any color!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#square{
    position: relative;
    width: 8rem;
    height: 8rem;
    background-color: rgb(14, 202, 202);
    border-radius: 5px;
    margin: 3rem 0 0 3rem;
    text-align: center;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we will make a animation. &lt;/p&gt;

&lt;p&gt;Step 1: Make animation &lt;code&gt;@keyframes&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To make a animation You need to set &lt;code&gt;@keyframes&lt;/code&gt;. It hold what styles you want to give to your element at a certain time and then you need to give it a name. I my case I am changing the color of square. So, I give it a name &lt;code&gt;color&lt;/code&gt;. Now, You can write &lt;code&gt;@keyframes&lt;/code&gt; in two type like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@keyframes color{
    from{
        background-color: rgb(14, 202, 202);
    }
    to{
        background-color: pink;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to perform a animation which has two steps you can use &lt;code&gt;to&lt;/code&gt; and &lt;code&gt;from&lt;/code&gt;. Or you can do it by using percentage value like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@keyframes color{
    0%{
        background-color: rgb(14, 202, 202);
    }
    100%{
        background-color: pink;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Percentage values are use when you have to do multiple task in the animation but you can use both! I usually use percentage value for an animation&lt;/p&gt;

&lt;p&gt;Step 2: Set &lt;code&gt;animation&lt;/code&gt; property on the square.&lt;/p&gt;

&lt;p&gt;Now, we will animation property on the square. You need to know about the properties of animation for that. I will tell you those which are mostly use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;animation-name&lt;/code&gt; - It is use to tell the browser which &lt;code&gt;@keyframes&lt;/code&gt; you want to use. In my case, my &lt;code&gt;@keyframes&lt;/code&gt; name is &lt;code&gt;color&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;animation-duration&lt;/code&gt; - It is use to tell in how much time the animation should be finished.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;animation-iteration-count&lt;/code&gt; - It is use to tell how many time it should execute.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can learn more about animation on &lt;a href="https://www.w3schools.com/css/css3_animations.asp" rel="noopener noreferrer"&gt;w3school&lt;/a&gt; or on any another website. Now, we will use the animation property but we will write it in a single line like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    animation: color 4s infinite;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are 7 property in &lt;code&gt;animation&lt;/code&gt; in Css. For using the &lt;code&gt;animation&lt;/code&gt; property in single line, I first write &lt;code&gt;animation-name&lt;/code&gt; that is &lt;code&gt;color&lt;/code&gt;, then &lt;code&gt;animation-duration&lt;/code&gt; which is 4s in my case and then set &lt;code&gt;animation-iteration-count&lt;/code&gt; to &lt;code&gt;infinite&lt;/code&gt;. If you want to use the animation only one time, you can set it to 1 . You can also set the values of animation property by your self.&lt;/p&gt;

&lt;p&gt;Now, if you see your square, it will change its color again and again! Now, we will make the square it move while changing the color.&lt;/p&gt;

&lt;h2&gt;
  
  
  Second Animation: Moving the square while changing the color!
&lt;/h2&gt;

&lt;p&gt;For that I will use the same square and I will make an another &lt;code&gt;@keyframes&lt;/code&gt; for that. We will use the same steps like before&lt;/p&gt;

&lt;p&gt;Step 1: Make animation &lt;code&gt;@keyframes&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@keyframes move{
    0%{
        left:0px;
        background-color: rgb(14, 202, 202);
    }50%{
        left: 300px;
        background-color: pink;
    }100%{
        left:0px;
        background-color: rgb(14, 202, 202);
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, I make a &lt;code&gt;@keyframes&lt;/code&gt; with the name &lt;code&gt;move&lt;/code&gt; and I use three steps for this animation. First I set the &lt;code&gt;left&lt;/code&gt; to 0px and a &lt;code&gt;background-color&lt;/code&gt;. Then at 50% I set &lt;code&gt;left&lt;/code&gt; to 300px and change the &lt;code&gt;background-color&lt;/code&gt; and at last, I again set &lt;code&gt;left&lt;/code&gt; to 0px, so that it will come on the first position.&lt;/p&gt;

&lt;p&gt;Step 2: Set animation property on the square&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    animation: move 4s infinite;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, I set the &lt;code&gt;animation-name&lt;/code&gt; to &lt;code&gt;move&lt;/code&gt;, then &lt;code&gt;animation-duration&lt;/code&gt; to 4s and &lt;code&gt;animation-iteration-count&lt;/code&gt; to &lt;code&gt;infinite&lt;/code&gt;. Again you can set the animation value according to your choice. And also don't forget to comment the first &lt;code&gt;animation&lt;/code&gt; property or things can go wrong!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;As the post is already too long so we will continue it on another post. For now, it is enough for today. I hope you understand it. I try my best to tell all the things about animation. And also tell me in the comments on what topic I should write my next post. Thankyou for reading!&lt;/p&gt;

</description>
      <category>animation</category>
      <category>css</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to make a Parallax Effect with Html, Css and JS</title>
      <dc:creator>Lakshita Kumawat</dc:creator>
      <pubDate>Sat, 13 Jul 2024 17:15:47 +0000</pubDate>
      <link>https://dev.to/lakshita_kumawat/how-to-make-a-parallax-effect-with-html-css-and-js-ib3</link>
      <guid>https://dev.to/lakshita_kumawat/how-to-make-a-parallax-effect-with-html-css-and-js-ib3</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Parallax Effect enhance the quality of a website. Today I will tell you how to make a parallax website in a few steps. You can use my &lt;a href="https://github.com/Lakshita-Kumawat/Parallax-Website-Tutorial" rel="noopener noreferrer"&gt;asset&lt;/a&gt; to make the website and visit my parallax website on &lt;a href="https://lakshita-kumawat.github.io/Parallax-Website-Tutorial/" rel="noopener noreferrer"&gt;github&lt;/a&gt; !&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Get Started:
&lt;/h2&gt;

&lt;p&gt;Step 1: Write html code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Parallax website&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;main&amp;gt;
        &amp;lt;section id="hero-section"&amp;gt;
            &amp;lt;div id="moon"&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;img src="/images/haunted.png" alt="haunted house"&amp;gt;
            &amp;lt;h1 id="text"&amp;gt;Parallex Website&amp;lt;/h1&amp;gt;
            &amp;lt;img src="/images/hands.png" alt="hands"&amp;gt;
        &amp;lt;/section&amp;gt;
        &amp;lt;section id="content"&amp;gt;
            &amp;lt;h1&amp;gt;Parallex Website&amp;lt;/h1&amp;gt;
            &amp;lt;p&amp;gt;Dummy text. Make sure the content is long enough so that the visitor is able to scroll the website&amp;lt;/p&amp;gt;
        &amp;lt;/section&amp;gt; 
    &amp;lt;/main&amp;gt;
    &amp;lt;script src="script.js" defer&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here I create a basic html document in which there are two section. One is for the images and second for the content. I have give id to both section so that I can select them easily. Keep in mind to arrange your  assets images properly. If you arrange a big image before the smaller once, then the smaller image will hide behind it. Don't forget to link your css and javascript document.&lt;/p&gt;

&lt;p&gt;Step 2: Defining Css document&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*{
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(12, 10, 20);
}
#hero-section{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Firstly, define the hero section styling. You should use the same styling so that all your content will be at the center. You can also set background color according to your assets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#hero-section img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40rem;
    pointer-events: none;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, the images styling. We use &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;top&lt;/code&gt; to zero so that every image is align in the left and top side. This will do the trick to style the images. Here, I use height to 40rem because my image was very big. You have to set the width and height according to your images.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#hero-section #text{
    position: relative;
    font-size: 3rem;
    color: white;
    font-weight: bolder;
}

#hero-section #moon{
    position: relative;
    bottom: 25%;
    background-color: rgb(220, 218, 218);
    width: 8rem;
    height: 8rem;
    border-radius: 100%;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, style the Heading and the moon. So can set these styles according to you. I have set moon to 25% bottom and at the center and give a grey tone.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#content{
    position: relative;
    background-color: rgb(96, 21, 33);
    padding: 2rem;
    z-index: 1; // this is important
}

#content h1{
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#content p{
    font-size: 1.2rem;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At the end, I have give some styling to content section. You can also change the styling of the content according to your choice but dont forgot to add &lt;code&gt;z-index&lt;/code&gt;. It will make it a level higher than other. For more information about &lt;code&gt;z-index&lt;/code&gt; you can visit to &lt;a href="https://www.w3schools.com/cssref/pr_pos_z-index.php" rel="noopener noreferrer"&gt;w3school&lt;/a&gt; or on any another website.&lt;/p&gt;

&lt;p&gt;Step 3: Writing the Javascript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let text = document.getElementById('text');
let moon = document.getElementById('moon');

window.addEventListener('scroll',() =&amp;gt;{
    let value = window.scrollY;
    //console.log(value);
    text.style.marginTop = value * 2.5+'px';
    moon.style.right = value * 2.5+'px';
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the main thing, javascript. It is preety simple. First I select the hero-section heading and the moon. Then, a &lt;code&gt;addEventListener&lt;/code&gt; with a function which works when the page is scroll. Now, we will access the value of y-axis with &lt;code&gt;window.scrollY&lt;/code&gt;. You can console log it if you want.&lt;/p&gt;

&lt;p&gt;Now, we will multiply the value with the &lt;code&gt;left&lt;/code&gt; of moon with 2.5 so that the moon will move towards left, when you scroll the page. If you think that it is moving fast then you can change 2.5px with a smaller number then it will move slower than before.&lt;/p&gt;

&lt;p&gt;Then, we will also multiply the value with the &lt;code&gt;marginTop&lt;/code&gt; of &lt;code&gt;hero-section&lt;/code&gt; heading with 2.5px so that when you scroll the page, the heading will come downwards. But the heading will still appear if we scroll downwards! Don't worry, did you remember we apply &lt;code&gt;z-index&lt;/code&gt; on the content section. So the heading will hide below the content section. And now its finish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So, that all for making a parallax website. You can add more things with it to make your website look even better. And Thank You for reading till the end. I hope you like it and don't forget to tell me in the comments if you like the post or how can I make my posts even better. Also please visit my &lt;a href="https://github.com/Lakshita-Kumawat" rel="noopener noreferrer"&gt;github&lt;/a&gt; !&lt;/p&gt;

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