Recent Features
CSS @supports
Feature detection via JavaScript is a client side best practice and for all the right reasons, but unfortunately that same functionality hasn't been available within CSS. What we end up doing is repeating the same properties multiple times with each browser prefix. Yuck. Another thing we.9 More Mind-Blowing WebGL Demos
With Firefox OS, asm.js, and the push for browser performance improvements, canvas and WebGL technologies are opening a world of possibilities. I featured 9 Mind-Blowing Canvas Demos and then took it up a level with 9 Mind-Blowing WebGL Demos, but I want to outdo.
See Full List On Github.com
Incredible Demos
SmoothScroll will give your mouse wheel (Chrome, Word, OneNote, text editors, PDF, etc.) buttery smooth scrolling. Give it a spin ?. Oil My Computer with SmoothScroll. Oil My Computer with SmoothScroll. Why would I do that?:-) Version 1.4.0 — Requires macOS 10.12+.
Vertically Centering with Flexbox
Vertically centering sibling child contents is a task we've long needed on the web but has always seemed way more difficult than it should be. We initially used tables to accomplish the task, then moved on to CSS and JavaScript tricks because table layout was horribly.Scrolling “Go To Top” Link Using Dojo
One of the most popular code snippets of posted on my blog has been the scrolling 'Go To Top' link snippet. The premise of the snippet is simple: once the user scrolls an element (usually the BODY element) past a given threshold, a 'Go.
Smooth Scroll 1 1 64
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent sit amet odio vel metus suscipit suscipit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce adipiscing. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam et est quis risus ornare interdum. New in SmoothScroll 1.4.2: Updated for Catalina (macOS 10.15). Built-in smart disable list e.g. Photoshop; Preferences now has a user disabled app list. SMILE FIRST is a dental clinic founded on a passion for dentistry, with the objective of providing patients with an outstanding level of dental care that enables them to achieve the smile they have always desired.
Smooth Scroll 1 1 6 X 6
- Nice, but actually, this can be done without PHP. By simply using the URL hash, this can be done better:
- @Lim Chee Aug: Cool, I’ll test that out!
- Oh ya, ignore the ‘else’ and the ‘e’ parameter in my code. Was typing too fast :P
- Nice david !
But the page is reload :S
It is the only lacking, but otherwise there was no other choice. - @Catar4x: I think the page reload is the whole point of this script. It’s showing you how to make the smoothscroll effect when the page reloads. David Walsh made a tutorial previously on how to smoothscroll without reloading the page. You can read that at this link: http://davidwalsh.name/smoothscroll-mootools-12
- Would be good to loop thru each link that links to a named anchor and then change them to have ?scrollto=### in the href.
If there is already a smoothscrolling script that looped thru the page, the page will not reload when clicked.
That way search engines will not index the same page with scrollto’s params several times. - @Josh: The main reason to use Lim Chee’s method rather than the PHP-based solution using GET is that it ensures that the anchor links retain their functionality when JS is disabled (the anchor links in the PHP version do nothing without JS).With Lim Chee’s, without JS you get old school anchor links, but with JS if you navigate directly to a page with a # in the URL, it will automatically SmoothScroll you down to it once the page has loaded. It’s a great example of progressive enhancement! Hazard dice game. :)The full code: Zip two files together.
- Doesn’t scroll to top?
- I like using this method: using ? instead oh hash stops the page jumping around etc.with the url being http://www.rickyh.co.uk/barwick/site/services.php?RCIS and RCIS is the id of the element.
- @ Ricky, That’s not the best thing to do concerning SEO. Using ?, you’ll end up with duplicates of your pages in the search engine indexes.
- Hi, i cant quite get it. How for example start a new page and force it automaticcly to scroll to let’s say “chapter 4” ( your examples ). And do it on start without any click from he user, this examples are not working for me. Normal smooth scroll works perfectly. If i could just specify one point on the page this would works quite fine. Thx for help ;-) i know its quite noobish question.
- Ah sry for double post… it can really be an ugly, ugly solution like pointing to the page content by pixels or so… :-).
- Lukie tr this link see if it works http://www.rickyh.co.uk/barwick/site/services.html?LPSC . I changed the code on the site because its under construction. O and it works by firing the scroll event onDomReady or page load.
- I’m only 13 years old and I really don’t know anything about html or java or any other code, but I’m making a website using adobe dreamweaver cs3. I was wondering if anyone would be so kind to make a code for me with a horizontal smoothscroll to a location like x:1000 pixels. Also could you tell me how to activate the code when a button is pressed. I’m willing to make a donation, since I don’t know how much work this is. Typinator 7 9th.
- @Christhis is a cool method, but I’m not sure if it works in webkit. I’m testing on Chrome & Firefox…things work perfectly in FF, but webkit seems to want to go directly to the # on the page immediately.
- correction, I had my function attached to a delay method, I took that out and it works…kind of. Wifi scanner 2 9 4. Its jumps all round the place in webkit.
- Hi Great post thanks for sharing. Im giving it a try now.
- Thanks so much for this man! You’ve saved me after hours and hours of screwing around.
- hi everyone, does anyone please have a sample files of this smooth scroll for php?, i can’t get it to work on load, im using the original php example from david but cant get it to work,