You are reading a single comment by @bq and its replies. Click here to read the full conversation.
  • Cheers, but nah, not heavy coding or applications. just websites, but i like moving things etc. Fortunately now you can do part of that with CSS3. JS is something that I don't know and I'm happy to avoid, but sometime it seems to be the only way... please correct me if I'm wrong... like if you need to have a scrolling div that it sticks on the top after you scroll, or appear and disappear at a certain point of the scrolling. If you have any useful link for this please let me know, I'd like to do all this in CSS if possible.

    You need a bit of JS for stuff like that, but only a tiny bit.
    You'll need an event listener to detect the scroll events. This triggers a function that swaps between 2 CSS classes depending on whether the div you want to stick is now going off the screen or not.
    Those 2 css classes will change the div between position:fixed and position: static/relative/absolute (as appropriate)

About

Avatar for bq @bq started