Code Sketched
Code Sketched
  • 88
  • 509 719
This animation is not as complicated as it looks!
In this video, we dig into a component from the Aceternity UI page that replicates the effect on this animation on the Google gemini page.
We recreate this using Next.js, Tailwind and Framer motion.
Here'e the link to the GitHub repo:
github.com/kokanek/framer-animations
Here's the link to the Aceternity UI page:
ui.aceternity.com/components/google-gemini-effect
Chapters in this video:
0:00 - Intro
0:43 - Demo
1:56 - Creating the project from scratch
3:02 - Concept 1: Positioning (sticky & absolute)
5:44 - Concept 2: SVGs with path and motion.path
7:10 - Concept 3: useScroll (Framer motion)
7:51 - Concept 4: useTransform (Framer motion)
9:20 - Summary
If you liked this video, check out my whole React playlist here:
czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html
If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newsletter:
codesketched.substack.com/
Codesketched site:
www.codesketched.com/
More info about me:
www.kapeelkokane.com/
Background music used in this video 👇🏾
--------------------------------------------------------------
♪ Onion (Prod. by Lukrembo)
Link : czcams.com/video/KGQNrzqrGqw/video.html
--------------------------------------------------------------
zhlédnutí: 1 221

Video

Do you understand the subtle difference between these two React concepts?
zhlédnutí 794Před 7 měsíci
In this video, we delve into the useMemo React hook after getting to know the code hooks in the previous videos. We also explore React.memo() and learn how it works in conjunction with the useMemo() hook. If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources eve...
React's missing piece: How useEffect hook saves the day!
zhlédnutí 977Před 8 měsíci
In this video, we will look into the need for the useEffect hook. Understanding how React creates a problem (due to the way it is designed) and how it then goes on to solve the problem. If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, t...
Understand the need for context API in React
zhlédnutí 832Před 9 měsíci
In this video, we look into the useContext() API that React provides us and see how it compares to the useState API. Check out our other popular videos: If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSket...
This React hook will help you understand how React works
zhlédnutí 482Před 9 měsíci
In this video, we look into the useState() hook in React that lets us manage and work with state. We look at the differences between directly modifying the state versus using the API that React provides us. Join the CodeSketched newsletter to get stuff like this in your inbox 👇🏾 codesketched.substack.com/ If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9Hw...
A React.js crash course in under 8 minutes!
zhlédnutí 1,2KPřed 10 měsíci
This video will teach you about the React.js library if you are a beginner getting started with it or even an intermediate developer who has decent experience with it. If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for th...
Why React had to create a whole new markup language?
zhlédnutí 2,1KPřed rokem
In this video, we take a look into how React created a brand new paradigm with JSX and how that ushered a new age of frontend development. If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newslette...
The Magic of React's Reconciliation: Behind the Scenes with a Microsoft Frontend Developer
zhlédnutí 15KPřed rokem
In this video, we look into the famous reconciliation algorithm that separates React from the rest of the frameworks. Here are the references used for the video: legacy.reactjs.org/docs/faq-internals.html legacy.reactjs.org/docs/reconciliation.html If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illu...
Things you didn't know about re-rendering in React
zhlédnutí 26KPřed rokem
In this video, we will look into when a React component actually re-renders. Here's the aticle by Josh Comeau that goes more deep into this: www.joshwcomeau.com/react/why-react-re-renders/ If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free...
Understanding this React concept will make you a pro React developer!
zhlédnutí 7KPřed rokem
In this video, we understand what the term "rendering" actually mean in React. If you liked this video, check out my whole React playlist here: czcams.com/play/PLTkAV9HwDLLDrT32MxxSeBDLWD4okCiVI.html If you like hand-drawn illustrations and 2-3 frontend dev resources every week for free, then sign up for the FREE CodeSketched newsletter: codesketched.substack.com/ Codesketched site: www.codeske...
What are classes in JavaScript? | CodeSketched
zhlédnutí 269Před rokem
What are classes in JavaScript? | CodeSketched
What is Prototype in JavaScript? | CodeSketched
zhlédnutí 2KPřed rokem
What is Prototype in JavaScript? | CodeSketched
Working with Map and Set in JavaScript | CodeSketched
zhlédnutí 451Před rokem
Working with Map and Set in JavaScript | CodeSketched
Throttling and Debouncing explained with Examples | CodeSketched
zhlédnutí 750Před 2 lety
Throttling and Debouncing explained with Examples | CodeSketched
What exactly is the Event Loop in JavaScript? | CodeSketched
zhlédnutí 4KPřed 2 lety
What exactly is the Event Loop in JavaScript? | CodeSketched
How to create our own Map and Filter method implementations in JavaScript? | CodeSketched
zhlédnutí 629Před 2 lety
How to create our own Map and Filter method implementations in JavaScript? | CodeSketched
Understand blockchain by building one! | CodeSketched
zhlédnutí 538Před 2 lety
Understand blockchain by building one! | CodeSketched
Call, Apply and Bind methods in JavaScript | CodeSketched
zhlédnutí 352Před 2 lety
Call, Apply and Bind methods in JavaScript | CodeSketched
git failed to push some refs to | git push command explained
zhlédnutí 12KPřed 2 lety
git failed to push some refs to | git push command explained
Understanding the 'this' keyword in JavaScript | CodeSketched
zhlédnutí 403Před 2 lety
Understanding the 'this' keyword in JavaScript | CodeSketched
Build your own Blog/Portfolio site with Docusaurus | CodeSketched
zhlédnutí 1,3KPřed 2 lety
Build your own Blog/Portfolio site with Docusaurus | CodeSketched
Inheritance in JavaScript | CodeSketched
zhlédnutí 444Před 2 lety
Inheritance in JavaScript | CodeSketched
Why is there a Strict Mode in JavaScript? | CodeSketched
zhlédnutí 1,2KPřed 2 lety
Why is there a Strict Mode in JavaScript? | CodeSketched
Understanding closures in JavaScript | CodeSketched
zhlédnutí 523Před 2 lety
Understanding closures in JavaScript | CodeSketched
Understanding Scope in JavaScript | CodeSketched
zhlédnutí 805Před 2 lety
Understanding Scope in JavaScript | CodeSketched
The JavaScript operator that you might not be aware of
zhlédnutí 239Před 2 lety
The JavaScript operator that you might not be aware of
The difference between event.target and event.currentTarget in JavaScript | CodeSketched
zhlédnutí 2KPřed 2 lety
The difference between event.target and event.currentTarget in JavaScript | CodeSketched
Why Next.js is the next big thing in web development!
zhlédnutí 421Před 2 lety
Why Next.js is the next big thing in web development!
Why you should learn TypeScript right now | CodeSketched
zhlédnutí 862Před 3 lety
Why you should learn TypeScript right now | CodeSketched
Promisify functions and avoid callback hell | async javascript
zhlédnutí 4,9KPřed 3 lety
Promisify functions and avoid callback hell | async javascript

Komentáře

  • @aayushxhhetri1344
    @aayushxhhetri1344 Před 24 dny

    lets say i have a const currentTime = new Date() below the count state and i try to render it <p>Current Time: {currentTime.toLocaleTimeString()}</p> in place of testcomponent ... then when i click the increament button the date also updates and shows the current date and time at the moment the button is clicked ..now you said that it wont happen because of virtual dom and it only renders the elements that is being updated but here this is no the case.. Can you explain why???

    • @Someguy-vl7dj
      @Someguy-vl7dj Před 20 dny

      He said it won't happen because if the virtual dom doesn't change, it doesn't send any change to the dom, but in your case, the virtual dom changed because "currentTime.toLocaleTimeString()" returned a different value.

  • @sivaganesh4489
    @sivaganesh4489 Před 25 dny

    Please don’t stop posting videos. You’re gem dude

  • @littlechange
    @littlechange Před měsícem

    The animated character you are using doesn't look good at all and that weird mouth movement doesn't help as well. I suggest don't use it at all or find a better alternative .... It's just a suggestion from me.

  • @Ari-uw1io
    @Ari-uw1io Před měsícem

    Great Explanation !

  • @Isagi__000
    @Isagi__000 Před měsícem

    That's a hella good explination man.

  • @leheisenberge
    @leheisenberge Před měsícem

    Thank you so much sir!! You are hidden en gem🙏💖

  • @aunshkasrivastava4301
    @aunshkasrivastava4301 Před měsícem

    Amazing explanation

  • @wishmeheaven
    @wishmeheaven Před měsícem

    Teaching is a talent that not everyone have. Teaching good is even more rare and you absolutely have this talent. I really appreciate your approach and I wish you will provide more content for more concepts (e.g. ssr, caching, rehydration, etc). Other content idea is teaching libraries such as the Tanstack products (router, table, qusry). Anyway, thanks a lot and good luck!

    • @CodeSketched
      @CodeSketched Před měsícem

      Thanks a lot for the kind words. :)

  • @wishmeheaven
    @wishmeheaven Před měsícem

    Awesome. Thank you..

  • @akram5960
    @akram5960 Před měsícem

    array.reduce(reducefn, 0) The second arg. should be 0, only if the acc of reducefn will be 0. Else, acc will be the first element of an array.

  • @minalchimankar6606
    @minalchimankar6606 Před měsícem

    Yes pls a deep dive video is needed

  • @minalchimankar6606
    @minalchimankar6606 Před měsícem

    Can you also add a video explaining the DOM, shadowDOM, and redux. Also how does the state gets passed to backend to store it in database.

  • @FaizanPinjari
    @FaizanPinjari Před 2 měsíci

    React.memo(List) component takes a prop List and when parent function Component re-render, it will rerun the function and it will rerun the expensive function coz it's not under useeffect. after the recompute it will get pass into list component and list component will take a updated props and hence trigger render. In this case useMemo will wrap the expensive function and watch if items and filter prop is receiving the update from it's parent or not.

  • @pavankumar-of4ew
    @pavankumar-of4ew Před 2 měsíci

    to avoid that ,async concept we need to use

  • @zanoxie
    @zanoxie Před 2 měsíci

    Wonderful video!

  • @as_if
    @as_if Před 3 měsíci

    3 reasons re rendering happens - change of state value - change of props value - re rendering of parent/grandparent components (for the impurity (side effect) of a component) Rendering itself is a well optimised method thanks to reconciliation. Moreover- 3rd reason can be avoided by using exporting default React.memo(component);

  • @as_if
    @as_if Před 3 měsíci

    Thank you sir

  • @as_if
    @as_if Před 3 měsíci

    Thanks. Core concepts. Very few touch or teach them.

  • @sachinjadeja
    @sachinjadeja Před 4 měsíci

    This is a GEMMM

  • @sheikzm1
    @sheikzm1 Před 4 měsíci

    you are amazing...

  • @artahir123
    @artahir123 Před 4 měsíci

    const [count, setCount] = React.useState(0); this line is runned every time when Counter function is called ? every time new variable is created count, setCount and gets the current state and that callback respectively ?

  • @nightmare-9467
    @nightmare-9467 Před 4 měsíci

    I love your ability to explain simply, you sincerely helped me a lot, sir. Thank you!!

    • @CodeSketched
      @CodeSketched Před 4 měsíci

      Thanks a lot for the kind works. Glad it helped you.

  • @prabuselvam2518
    @prabuselvam2518 Před 4 měsíci

    want a video on react redux

  • @KYOTF67
    @KYOTF67 Před 4 měsíci

    Nice Tutorial

  • @QuantumVoid-ro3hi
    @QuantumVoid-ro3hi Před 4 měsíci

    So what's the bottom line? That any component that doesn't depend on state OUTSIDE itself (apart from what's passed in through its props) is a candidate to be memeoized (including components that have internal state)?

  • @milad8030
    @milad8030 Před 4 měsíci

    thanks for videos, and please mute the background music. thanks

  • @razakadegoke3340
    @razakadegoke3340 Před 4 měsíci

    Very well explained thx for your video

  • @balabuyew
    @balabuyew Před 4 měsíci

    The most interesting case, where keyed and not keyed children are mixed (and may be even moved around), is not described.

  • @user-xg4px6gv5y
    @user-xg4px6gv5y Před 4 měsíci

    hey your explanation is good but background music is so loud

  • @aboltabol77
    @aboltabol77 Před 4 měsíci

    fuck and wrong information

  • @jackdesparrow4783
    @jackdesparrow4783 Před 4 měsíci

    best explanation

  • @jackdesparrow4783
    @jackdesparrow4783 Před 4 měsíci

    const[a,b,c]=args which is array destructing--------- func1.call(obj1,a,b,c) please let me know if i am righr or wrong

  • @jackdesparrow4783
    @jackdesparrow4783 Před 4 měsíci

    newarr=[4,8,12]

  • @jackdesparrow4783
    @jackdesparrow4783 Před 4 měsíci

    alpha,gamma,beta based on your explanation :)

  • @azuma12
    @azuma12 Před 5 měsíci

    Well you could get smooth scrolling through lenis or maybe gsap ig I have tried it and works fine

  • @thesadanand6599
    @thesadanand6599 Před 5 měsíci

    background music is really annoying ...

  • @user121304
    @user121304 Před 5 měsíci

    In forEach , function executes and then returns undefined . Why do we use it then if undefined is returned???

  • @user121304
    @user121304 Před 5 měsíci

    I guess that is what Virtual Dom does. Am I correct?

  • @amrajamarnath7952
    @amrajamarnath7952 Před 5 měsíci

    Background 🎼🎼🎼🎼🎼🎼 score 😅

  • @IlyesCodes
    @IlyesCodes Před 5 měsíci

    Thank u that was helpful

  • @travelandeat1609
    @travelandeat1609 Před 5 měsíci

    thnks

  • @travelandeat1609
    @travelandeat1609 Před 5 měsíci

    thanks

  • @abhaytiwari5991
    @abhaytiwari5991 Před 5 měsíci

    Bro please bring more videos regarding typescript and react btw your explanation are always lit 💥.

    • @CodeSketched
      @CodeSketched Před 5 měsíci

      Thank you :) Thinking of doing a short 'getting started with TS series'

    • @guilhermemm-dev
      @guilhermemm-dev Před 2 měsíci

      @@CodeSketched what vscode theme you're using please? I liked it

  • @manuarora
    @manuarora Před 5 měsíci

    Amazing! 🔥

  • @cthinkzz
    @cthinkzz Před 5 měsíci

    Can you please make video on how redux works?

    • @CodeSketched
      @CodeSketched Před 5 měsíci

      Yes. That is in the queue. Should I just cover his Redux works or also include a sample project?

    • @cthinkzz
      @cthinkzz Před 5 měsíci

      @@CodeSketched Just the internals of the redux, like you have explained react rendering process. Simple but in Depth ✨

  • @viratpatil
    @viratpatil Před 5 měsíci

    I have quick question on this so when we say comparison do we really compare with real dom with virtual dom or we compare previous state of real dom..?

    • @CodeSketched
      @CodeSketched Před 5 měsíci

      Until the DOM updates, there is no previous state. Just one state that the DOM exists in. And that is what the virtual DOM is compared with.

    • @viratpatil
      @viratpatil Před 5 měsíci

      @@CodeSketched So are you saying we always compare virtual dom to real dom ?

    • @artahir123
      @artahir123 Před 4 měsíci

      isnot the update VDOM compared with the previous VDOM ?

  • @sayurikamble825
    @sayurikamble825 Před 5 měsíci

    Where can I find the stackoverflow link that was mentioned in the video?

  • @sayurikamble825
    @sayurikamble825 Před 5 měsíci

    Best! Would love to see more & more videos from you.

  • @aarthikrishnan6503
    @aarthikrishnan6503 Před 5 měsíci

    Thank you so much! i was searching for this so long time finally found it. Thank you

  • @prasadbagul2146
    @prasadbagul2146 Před 6 měsíci

    How to used raycast and carbon for snapshot of code

    • @CodeSketched
      @CodeSketched Před 6 měsíci

      Do you want to use raycast Mac utility with carbon for code snippet generation?