News for hackers. Stuff that matters.
Re:Show HN: An HTML/CSS/JS toggle switch with happy and sad ... by itchynosedev on Wednesday March 15, 2017 @06:25AM (#13875103)
Awesome transitions!

One minor annoyance is toggles is meant to respond instantly, and when I click it just accelerates tad slow as to make you think it's a bit lagged.

Looks very cool, though.

Re:Show HN: An HTML/CSS/JS toggle switch with happy and sad ... by retSava on Wednesday March 15, 2017 @07:32AM (#13875353)
You can change the line var toggleTl = new TimelineMax({paused:true}).timeScale(2);

to read eg var toggleTl = new TimelineMax({paused:true}).timeScale(5);

instead. (I'm not the author, just fiddling)