Pure CSS Snap Scrolling Tutorial [Better User Experience!]

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • CSS Scroll Snap allows you to create a better user experience by making the user’s scrolling or swiping more precise. In this CSS scroll snap tutorial, I explain the scroll-snap-type and scroll-snap-align properties with allow you to achieve scroll snapping. The scroll snap CSS properties enable you to create and control snapping in your UI's. A very common use case is for image carousels. We can avoid using JavaScript for this scroll snapping behavior and, instead, use CSS.Created by Gregg Fine.
    #css #coding #webdevelopment
    🎓 Course Available!: "DOM Events and JavaScript": store.thecodec...
    🎓 Course Available! "Scrollytelling 101":
    store.thecodec...
    🔴Subscribe for more free Code Creative videos: : / @thecodecreative
    👭Join The Code Creative Community on Facebook:
    / thecodecreative
    🌐 The Code Creative Official Website
    www.thecodecre...
    🎓 The Code Creative Courses
    www.thecodecre...
    ▬About The Code Creative ▬▬▬▬▬▬▬▬▬▬▬▬
    The Code Creative helps web developers learn the fundamentals of programming, algorithms, as well as the latest frameworks and libraries. You can expect web development content that is fun, clear and concise, and keeps you engaged with visuals and a touch of humor.
    ▬Social Media ▬▬▬▬▬▬▬▬▬▬
    ▸ Twitter - @GreggFine
    ▸ Instagram - /greggfinedev
    ▸ Facebook - / thecodecreative
    ✅ Recommended related videos:
    Debouncing Explained
    • Debouncing Explained |...
    Memoization Explained
    • JavaScript Memoization...
    Sorting in JavaScript Explained
    • JavaScript Comparator ...
    ✅ For business inquiries contact me at gregg@greggfinedev.com

ความคิดเห็น • 16

  • @TheCodeCreative
    @TheCodeCreative  2 ปีที่แล้ว

    🎓 New Course Available! "Scrollytelling 101": store.thecodecreative.com/scrollytelling

  • @ZeanVillongco
    @ZeanVillongco ปีที่แล้ว +1

    Glad I encountered your video! This was exactly the solution that I was looking for! Didn't know that such scroll-snap properties existed, until now. 🤗💯

  • @cutzudev
    @cutzudev 2 ปีที่แล้ว +1

    Underrated video no cap

  • @ram-gb4xg
    @ram-gb4xg 2 ปีที่แล้ว +1

    Great content Gregg! I hope you create a course on TypeScript in the future :)

    • @TheCodeCreative
      @TheCodeCreative  2 ปีที่แล้ว +1

      ok, great suggestion, I'll add it to the list 👍🏻

  • @bambindien3327
    @bambindien3327 2 ปีที่แล้ว +1

    Hi and thanx for this video. It works fine so far, but i get two vertical scrollbars? Also tried other tuts for this but i can't get rid of the second scrollbar. Has anyone a tip for me?

    • @TheCodeCreative
      @TheCodeCreative  2 ปีที่แล้ว

      Are you on Windows?

    • @bambindien3327
      @bambindien3327 2 ปีที่แล้ว

      @@TheCodeCreative no, MAC :/

    • @TheCodeCreative
      @TheCodeCreative  2 ปีที่แล้ว

      @@bambindien3327 Check the "General" section in System Preferences. Try changing the "Show scroll bars" options and see what happens.

    • @bambindien3327
      @bambindien3327 2 ปีที่แล้ว +1

      @@TheCodeCreative thank you for the tip TCC. It helped by changing show scroll-bar from allways to auto (when scrolling). I think i'll keep it out from real projects ... and sorry for my bad english :)

  • @TheCodeCreative
    @TheCodeCreative  2 ปีที่แล้ว

    🎓 Course Available!: "DOM Events and JavaScript": store.thecodecreative.com/dom-events-and-javascript

  • @maruchen4834
    @maruchen4834 ปีที่แล้ว +1

    Great work!!