Pure CSS Snap Scrolling with these New CSS Properties!

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

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

  • @DesignCourse
    @DesignCourse  6 ปีที่แล้ว +17

    Be sure to SUB! My answer for today's question: I'm currently only on 16GB. I used to have 32, but 2 sticks died and apparently I'm quite lazy and never replaced them. :[ You?

  • @tkdevlop
    @tkdevlop 6 ปีที่แล้ว +95

    I always download more ram as per requirement.

    • @kshitiz6343
      @kshitiz6343 4 ปีที่แล้ว +3

      Share the link here. I want to download some RAM too. 😂

  • @dragonknight1297
    @dragonknight1297 4 ปีที่แล้ว

    the coverage of this particular property is much much better right now! keep it up, sir :D

  • @GameOver7853
    @GameOver7853 6 ปีที่แล้ว +20

    I just saw this new feature on Google Chrome Developers' channel and here you are with a tutorial

    • @hugocsl
      @hugocsl 6 ปีที่แล้ว +2

      A saw the same video yesterday :D

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

      Gary coming in clutch with these tutorials

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

    Wow, this is a pretty cool feature, looking forward to seeing what people will come up with using this.
    As for the question, I have 8 GB ram on my laptop, bought it about 4-5 years ago and it's still working well :)

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

    awesome tutorial ..you always come with new stuff that make me to watch your videos ...thanks a lot

  • @RodrigoMendoza7
    @RodrigoMendoza7 6 ปีที่แล้ว +7

    You finally updated VSCode 😲 Now I understand why it's raining like hell over there 😜😂

  • @leflyingcarpet
    @leflyingcarpet 6 ปีที่แล้ว +6

    Sad that it doesn't work with the scrollwheel or touchpad

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

    Awesome video, you explained and demonstrated this feature really well. Very informative! I think I'll wait for this to be compatible with more browsers before I use it. :)

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

    Please make a tutorial on what steps or things should make in mind before writing css for a website I know css but don't know how professionals do, please if you can make a tutorial on it that would be a great help😁
    Apart from this I love your videos and learnt a lot and learning thanks for this... 😊

  • @ricardoacostatorres1350
    @ricardoacostatorres1350 6 ปีที่แล้ว

    I'm in a ICT/Electronic school, so i bought a laptop for 800€. it's ACER with 128 GB SSD, 500GB HDD, 16GB Ram, i7 processor, 2GB graphic card and it even has USB-C port. now.I bought a new SSD of 500GB Samsung for 97€ to replace the 128 GB one. ( free cloning software with it.)

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

    This is a useful trick. However, I have noticed that if you use scroll-snap-type: x mandatory; this works in Chrome but it will cause Firefox to break. In contrast, scroll-snap-type: mandatory; works in Firefox fine and subsequently breaks Chrome. Therefore, I impliment a Chrome only css rule using @media screen and (-webkit-min-device-pixel-ratio:0) etc as a work around for both. Thanks for the video :)

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

    Your channel is so valuable man its awesome. Keep it up pls :)

  • @pulkitpandey
    @pulkitpandey 6 ปีที่แล้ว

    Hi Gary Hope You Are Doing Well
    I want to know that can I target the element using class to apply snap scroll

  • @bobbyvang
    @bobbyvang 6 ปีที่แล้ว

    Really cool new property to know. Thanks for showing us!

  • @cseymour97
    @cseymour97 6 ปีที่แล้ว

    OMG FINALLY! I don't have to use Jquery for this anymore!!! so much more lightweight and easy!!

    • @alexmachin1785
      @alexmachin1785 6 ปีที่แล้ว

      You could have just used vanilla js but yeah whatever lol

    • @cseymour97
      @cseymour97 6 ปีที่แล้ว

      I prefer jquery for it's cleaner look and simplicity. I find myself more productive. I do the same with Pug and sass as well. but oh well. won't need it anymore

  • @biswamohandwari780
    @biswamohandwari780 3 ปีที่แล้ว +2

    I can smell how to make a perfect css slider now

  • @rmstm5640
    @rmstm5640 4 ปีที่แล้ว

    Thanks ! your scroll tips are awesome

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

    wasnt working in React, fixed it with adding {scroll-snap-type: y mandatory;
    overflow-y: scroll;} to the html tag instead of the Body tag

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

      Dan has you tested it on ios safari? its not working on iphone.

    • @danielromeo99
      @danielromeo99 3 ปีที่แล้ว

      @@williambenarto6212 unfortunately not. I haven’t started testing on other browsers than Firefox

  • @jasperzanjani
    @jasperzanjani 6 ปีที่แล้ว

    This was a very cool demo of a feature I've seen on some fancier websites, very nice!

  • @debadipti
    @debadipti 6 ปีที่แล้ว

    Thank you the guide and clearing my doubts.. really liked it! (as always!).. hopefully I will make something cool using this!

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

    I don't mean to ask questions here but wondering what plugins/extensions you recommend for Visual Studio Code, especially for front-end work like html/scss/javascript?

  • @franktielemans6624
    @franktielemans6624 3 ปีที่แล้ว

    I there a way to add a sticky navigation?
    When I give each section an ID and a nav with anchors to these ID's, nothing seems to happen.

  • @prakash1to7
    @prakash1to7 4 ปีที่แล้ว

    Really simple and informative video 😉👍👍

  • @정주영-f1m
    @정주영-f1m 5 ปีที่แล้ว +1

    I have question.
    In the video, you converted the sass file directly to the css file. How did you do that?There are no bundler or task runner settings in your folder in this video.

    • @TheProDeSquare
      @TheProDeSquare 5 ปีที่แล้ว

      vs code watch sass extension

    • @정주영-f1m
      @정주영-f1m 5 ปีที่แล้ว

      @@TheProDeSquare oh thanks

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

    I do Exact things but it doesn't work!!
    Any help!!

  • @avitakiyar4209
    @avitakiyar4209 6 ปีที่แล้ว +3

    Can anyone please tell me why snap scroll does not work when the container has an absolute position and what is the solution for it?

    • @mmuizz8464
      @mmuizz8464 6 ปีที่แล้ว

      if you're using one div or element so first add position relative
      in your main element i hope it solve a mystery...

  • @ibrahimjab
    @ibrahimjab 6 ปีที่แล้ว +2

    Q&A: I'm using MacBook Pro, 16GB DDR3 which is enough for my work for now.

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

    This will be good in creating an Azure Portal like UI.... just what I need.

  • @r_eizen
    @r_eizen 4 ปีที่แล้ว +2

    scroll-snap-type won't work on the body element. overflow is also not necessary

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

    This is such amazing and very useful!!

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

    PROBLEM: I did exactly what he did. My scroll snap works but i am having like 300ms delay for every snap when i use mouse wheel... Some similar problems?

    • @yogeshchauhan5331
      @yogeshchauhan5331 3 ปีที่แล้ว

      yeah me too , did you find a solution to this?

  • @liamhtml979
    @liamhtml979 4 ปีที่แล้ว +3

    For whatever reason, when I tried this using your code it didn't work for me. Any suggestions?

    • @PixelatedBrain7
      @PixelatedBrain7 4 ปีที่แล้ว

      maybe it isn't supported by your browser yet

    • @liamhtml979
      @liamhtml979 4 ปีที่แล้ว

      @@PixelatedBrain7 I use the newest version of Firefox, which I believe should work...

    • @PixelatedBrain7
      @PixelatedBrain7 4 ปีที่แล้ว

      @@liamhtml979 try chromium based ms edge

  • @ernestwereko7101
    @ernestwereko7101 4 ปีที่แล้ว

    Hello Sir. The scroll element is working but it does not stick when I use the mouse-drag.

  • @ultramoxx1148
    @ultramoxx1148 5 ปีที่แล้ว +2

    Dosn't seem to work in the new chrome version :(

    • @studiolex2552
      @studiolex2552 5 ปีที่แล้ว +2

      got the same problem, really strange

    • @ultramoxx1148
      @ultramoxx1148 5 ปีที่แล้ว

      Lex Verbeeck in older Version its working. I could not find a patchnote to that. So thats a bug I think :)

    • @studiolex2552
      @studiolex2552 5 ปีที่แล้ว

      @@ultramoxx1148 really sucks... i need this real soon.. got an alternative?

    • @ultramoxx1148
      @ultramoxx1148 5 ปีที่แล้ว

      Lex Verbeeck Naa not really yet but
      I guess you have 2 options
      A: downgrade chrome
      B: write a js fallback
      But I think B is way too much work
      I wish u good luck :)

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

    16 GiB of Ram, Upgrade to 32 GiB in the next few months possible. Depending on price development for system memory.
    Instead of subtracting the padding off the width and the height, just use "box-sizing: border-box;". IMO cleaner syntax, less writing and easier to change paddings (just change it in one place, instead of 3).

  • @eclecticann
    @eclecticann 3 ปีที่แล้ว

    Hi! Can we use scroll padding on nav links? When i click on on any of my nav lists, i would like for it to scroll to a specific section in my page? Help please. Thanks so much!

  • @cforaday9387
    @cforaday9387 5 ปีที่แล้ว

    I also went to your links to see if you had the classes or a download of the file. I was not able to find anything

  • @FunIsGoingOn
    @FunIsGoingOn 6 ปีที่แล้ว

    Got 2 server with 24GB each. Now in a new job I had the opportunity to choose work PC an NB by myself but limited budget, so I choose 8 gigs DDR4 for both. Priority was SSD and that I can add more RAM into the PC later and maybe a 3rd monitor. What watch/live-reload SASS plugin do you use? There are so many..

  • @KalvenHD
    @KalvenHD 6 ปีที่แล้ว

    Hello :) what extension do you use when you have ´watch sass´?

  • @BangNguyen-ic8yv
    @BangNguyen-ic8yv 6 ปีที่แล้ว

    Hello, i'm curious about how this sass watch works

  • @Atractiondj
    @Atractiondj ปีที่แล้ว

    horizontal scroll not work with vertical scroll like in fullpage.js library with extension

  • @viniciusferreira8001
    @viniciusferreira8001 4 ปีที่แล้ว

    Thanks Rob Halford!

  • @emmanueltoussaint2466
    @emmanueltoussaint2466 5 ปีที่แล้ว

    Hi! How can I animate a loop snap scrolling div, like a carousel?

  • @zentali-meditation
    @zentali-meditation 6 ปีที่แล้ว

    I too also just researched this and tested it in various browsers. Unfortunately, that syntax only works in latest Chrome desktop and mobile, and Safari. For Firefox, you'd have to use the old syntax where you specify the distance per snap (not very robust). Even though caniuse says Edge and IE11 support the old syntax, I couldn't get those to work.

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

    Shouldn't the sound at 2:03 appear at 2:37 ? 😄
    Still using my good old 8GB RAM... sometimes it really sucks when my computer is running out of memory - lagging hard 😕 but it still working 🤓

    • @tanzzzzz225
      @tanzzzzz225 5 ปีที่แล้ว

      I have 4gb ram😢

  • @gonza_911
    @gonza_911 6 ปีที่แล้ว

    can you give an example by taking the scroll bar down from the screen?

  • @Eva-zd8oo
    @Eva-zd8oo 4 ปีที่แล้ว

    Thanks for video and info. Good luck

  • @NaveenKumar-gr3qk
    @NaveenKumar-gr3qk 6 ปีที่แล้ว

    Please create a smooth scrolling in angular 5 video

  • @Thoughts2High
    @Thoughts2High 6 ปีที่แล้ว

    Do you have a tutorial to show how to reveal an image while scrolling down?

  • @INKWEON7269
    @INKWEON7269 6 ปีที่แล้ว +2

    Thanks~ Does it work on mobile? ^^

  • @bytetrunk
    @bytetrunk 6 ปีที่แล้ว

    Is there a way to do this with Javascript / jQuery

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

    It is not working with body container

  • @sarcasticdna
    @sarcasticdna 4 ปีที่แล้ว

    Video starts at 3:50 😊

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

    Amazing, thanks for sharing this wonderful stuff.

  • @markmaximus100
    @markmaximus100 6 ปีที่แล้ว

    Cool, thanks Gary!

  • @expresstutorial3255
    @expresstutorial3255 6 ปีที่แล้ว

    You can make that using width 100% height 100vh
    what do you mean with scroll-snap?

    • @FelixVanGucht
      @FelixVanGucht 6 ปีที่แล้ว

      I get your confusion, you aren't seeing what scroll-snap is doing in the example.
      It's snapping to a certain points of the page, like a picture in a carousel would, which is actually also the example chrome developers used in their demo, a picture carousel.

  • @kadeus
    @kadeus 4 ปีที่แล้ว

    you write scss and call css in html how ist work??

  • @s7s_space
    @s7s_space 4 ปีที่แล้ว

    it didn't work or didnt notice any thing ?! using chrome latest ver ?

  • @AdamsTaiwan
    @AdamsTaiwan 6 ปีที่แล้ว

    The sample that Google used to demo this feature at a new problem. Clicking with the mouse on the scrollbar did not always work, very poor user experience.

  • @aseemlalfakawma5084
    @aseemlalfakawma5084 6 ปีที่แล้ว

    You use the mouse a lot, or is it just for the tutorial? Because I find myself hardly reaching for the mouse while coding.

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

    Sir Gary I'd suggest you wear a DesignCourse T-Shirt :) That way you'll only wear one T-Shirt design for all your videos and as well as on your plugging :) That's just my suggestion tho. :)

  • @mattd5419
    @mattd5419 6 ปีที่แล้ว

    This could be very useful for carousels

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

    I like your tutorials.

  • @Konsinn
    @Konsinn 5 ปีที่แล้ว

    Can I control the transition duration of the scrolling? Seems too fast to me.

  • @RebelRaysGmbH
    @RebelRaysGmbH 3 ปีที่แล้ว

    Why do you have a cupboard right in front of a door in your room?

  • @thetowerfantasymusic
    @thetowerfantasymusic 3 ปีที่แล้ว

    You're a lifesaver !

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

    I wanted 16 gb macbook but it was out of stock and new ones were too costly. so i bought the one with 8 gb

  • @HaniHassan1
    @HaniHassan1 6 ปีที่แล้ว

    Good information, Answer of today's question is 8gb

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

    Thanks for the video.

  • @KieranCrown
    @KieranCrown 6 ปีที่แล้ว

    32GB although I’m not sure why the only time I ever use even close to that is when I have a android simulator and Mac OS X virtual box with a sim open

  • @HOWZ1T
    @HOWZ1T 6 ปีที่แล้ว

    I have 32Gb of Ram, a lot more than I normally need but it does helping testing out some memory heavy stuff... like modded minecraft XD

  • @shehza-d
    @shehza-d 2 ปีที่แล้ว

    didn't worked for me and why using SCSS for basic projects

  • @anjusuman757
    @anjusuman757 6 ปีที่แล้ว +12

    Sir it is not a joke but I have only😫 2gb ram

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

      Me too😢

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

      me:3;

    • @sethm3194
      @sethm3194 6 ปีที่แล้ว

      You guy are pathetic. Upgrade already. 64 gigs is best.

    • @adilismail3593
      @adilismail3593 5 ปีที่แล้ว

      @@sethm3194 u rich bastrd

  • @timtitus7861
    @timtitus7861 6 ปีที่แล้ว +6

    "at the time of recording this, it's 21%".... I'm out. Thanks for the info though

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

      you missed the part where he says there're polyfills so you can start using it 11:56

  • @akmalislamov4469
    @akmalislamov4469 4 ปีที่แล้ว

    wtf? why you didnt use box-sizing: border-box?

  • @nalsai
    @nalsai 6 ปีที่แล้ว

    I only have one 8GB Stick. It's mostly enough for me. I would like to have one more stick but in my opinion it is too expensive with only a small benefit.

  • @Clickyv
    @Clickyv 6 ปีที่แล้ว

    ammm My PC is 8gb of RAM, and for now is really enough for me. And i really hope all browsers will support this new css feature for me.

  • @g43s
    @g43s 5 ปีที่แล้ว

    that an 8 string guitar in the back? 👀

  • @IndijanacIzGandijeve
    @IndijanacIzGandijeve 6 ปีที่แล้ว

    Awesome, awesome stuff:)

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

    Did exactly as she showed, and have the latest version of Firefox, and it still would not work.

    • @banana6033
      @banana6033 5 ปีที่แล้ว

      me too

    • @Rubenlousada
      @Rubenlousada 5 ปีที่แล้ว

      @@banana6033 same but im using google chrome ...

  • @adnanamin3666
    @adnanamin3666 6 ปีที่แล้ว

    We'd appreciate a design to code project? Would you like to do one?

  • @Yasir-zy3en
    @Yasir-zy3en 6 ปีที่แล้ว

    8gbs of ram, want to get 16gb but ram prices are so high right now

  • @sethm3194
    @sethm3194 6 ปีที่แล้ว +2

    I have 64 GB. I use After Effects on a weekly basis so I need it. It really handy to have a lot I can have 20 programs open at the same time with no latency. Also have 3 Samsung 960 Nvme drive one for caching.

    • @LuXxenatorX
      @LuXxenatorX 6 ปีที่แล้ว +2

      cool wow interesting bravo

  • @zachthemaniac
    @zachthemaniac 6 ปีที่แล้ว +2

    I have 8gb ram. But i need to badly upgrade to 16 cause of my new work flow. Browser with multiple tabs, local vm server, vscode and of course music... leaves very little ram and slows my computer down. Probably also need a ssd for my OS.

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

      lol jus get an ssd u fool

  • @GeorgeLathem
    @GeorgeLathem 6 ปีที่แล้ว

    48gb
    No more Javascript for this. Thank goodness!

  • @feyzullahyldz4829
    @feyzullahyldz4829 4 ปีที่แล้ว

    section css could be like this.
    section {
    padding: 7em;
    height: 100vh;
    box-sizing: border-box;
    ...
    }

  • @k1ngjulien_
    @k1ngjulien_ 6 ปีที่แล้ว

    Until 2 days ago I had 16gb. Then suddenly one stick died and gave me a mini heart attack because my PC would just bootloop and I thought the motherboard was dead.

  • @totallynotgad
    @totallynotgad 6 ปีที่แล้ว

    I used to have 4 but I upgraded to 16 when i got my dads pc.

  • @muhammadusman7217
    @muhammadusman7217 6 ปีที่แล้ว

    4 GB 🤯 it's cooool 😃

  • @RussDnB
    @RussDnB 4 ปีที่แล้ว

    Did anyone else hear: "Link, banana"?

  • @liamnugent116
    @liamnugent116 6 ปีที่แล้ว

    32gb of ram 😁 got to keep up to date with the pc.

  • @KazHachiOreki
    @KazHachiOreki ปีที่แล้ว

    if someone is using chrome/firefox use 'html' instead of 'body', that is bcoz safari's main parent is body so it's working for him but will not work in other browser

  • @omegashin9420
    @omegashin9420 6 ปีที่แล้ว +2

    8GB, 4GB virtual from SSD XD

  • @AAlani-uz4gm
    @AAlani-uz4gm 6 ปีที่แล้ว +1

    No less than 16gigs ddr4 2660

  • @rodrigoalvesvilela23
    @rodrigoalvesvilela23 6 ปีที่แล้ว

    My computer is a good machine yet this 1TB HDD only has 5400rpm which makes the computer a lot slower than it should be for the specs it has but overall is a great PC just needs an upgrade for an SSD and it will get now that I'll start my first job is an internship but I get my paycheck :D
    i5-7200u
    8gb ram
    hd 620 + 940mx
    1tb hdd 5400rpm

  •  6 ปีที่แล้ว

    Love it!

  • @crs
    @crs 6 ปีที่แล้ว

    Well, this is going to be *hard* ! I am running Windows 98 with 64 MB RAM and 10GB of Hard Disk Space on and use Photoshop 5.0 and Illustrator 7 for my design works. 😥😭
    *It's a JOKE*
    No, it isn't!

  • @FelixVanGucht
    @FelixVanGucht 6 ปีที่แล้ว

    I have 16GB on both my Macbook pro and Windows machine.

  • @kotosnet
    @kotosnet 6 ปีที่แล้ว

    16gb and would have more for editing video