Bring Physics to Life with React and Styled Components: Building a Newton's Cradle Swing 🔥

Bring Physics to Life with React and Styled Components: Building a Newton's Cradle Swing 🔥

T
Thapa Technical
1 Video View·Apr 14, 2023

Welcome, In this tutorial, you'll learn how to bring physics to life using React and Styled Components by building a Newton's Cradle Swing. If you've ever seen a Newton's Cradle, you know how mesmerizing it can be to watch the balls swing back and forth in perfect harmony. In this video, we'll show you how to recreate that same effect using React and Styled Components.

👉 Get Complete Source Code Here: https://www.thapatechnical.com/2023/04/creating-newtons-cradle-animation-using.html

😊 Become Member, get access to perks, free Source code, & more..
https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join

😍 Check my Instagram to Connect with me: https://www.instagram.com/thapatechnical

👩‍💻 Discord Server Link for Programmer to Hangout: https://discord.gg/MdScmCsua6

✌ Website Link: https://www.thapatechnical.com

---Timeline-----
0:00 - Intro & Demonstration

0:45 - Discuss folder structure and set up the React project

2:10 - Install and import styled-components

2:50 - Explain the logic of how the Newton's Cradle animation will be created

3:30 - Write the JSX code for the NewtonCradle function

4:45 - Style the Newton's Cradle using styled-components and CSS properties

9:20 - Add a swinging animation to the Newton's Cradle using keyframes and transform properties


************* 😍 Must Watch Videos For Web Development 😍 *************

➡️ Complete Reactjs in One video here https://youtu.be/43IbFDSVdB0

➡️ HTML in One Video: https://youtu.be/pN7BFLfSjFw


➡️ CSS in One video: https://youtu.be/hkQv0NIxKQY


➡️ CSS FlexBox in 30 Minutes: https://youtu.be/6L-PAmZajfA


➡️ JavaScript in One video: https://youtu.be/PODgPW-hbfU


➡️ ECMAScript 6 in One Video: https://youtu.be/Iek4DtRobLA


➡️ HTML5 in one video: https://youtu.be/4V0-YpO-KZo


➡️ CSS3 in one video: https://youtu.be/TFrFx7H5ZI8


➡️ Bootstrap4 in One video: https://youtu.be/yZnNnvXO8HI


➡️ Jquery in One video: https://youtu.be/PNvyPEQ0y-I


➡️ JSON in one video: https://youtu.be/bMqevPKAPD4


➡️ ReactJS in one video: https://youtu.be/43IbFDSVdB0


➡️ PHP in One Video: https://youtu.be/3024Kc6SDJ0


➡️ NodeJS in one video: https://youtu.be/ipnWAKoiBt


➡️ MySQL in one video: https://youtu.be/5bFxbwjN-Gk


➡️ Advanced JavaScript in Hindi Playlist: https://www.youtube.com/playlist?list=PLwGdqUZWnOp0hSGwasCjbrWSPrEKqB_kz&disable_polymer=true


➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: https://youtu.be/Iek4DtRobLA


➡️ JavaScript Game Development Series in 2020: https://www.youtube.com/playlist?list=PLwGdqUZWnOp1Ub0K1CBuLxLOEN6wTq2bg