r/webdev • • Jan 18 '23

CSS flex for speed learners.

6.5k Upvotes

100 comments sorted by

View all comments

159

u/The_Egg_came_first Jan 18 '23

Source: https://semicolon.dev/tutorial/css/justify-content-examples

Oh my, that's how they made the bouncy animation:

jQuery( document ).ready(f=>{
  setTimeout(e => {
    jQuery('table').animate({width: '450px'}, 2000, 'easeOutBounce').animate({width: '100%'}, 2000, 'easeOutBounce').animate({width: '450px'}, 2000, 'easeOutBounce').animate({width: '100%'}, 2000, 'easeOutBounce').animate({width: '450px'}, 2000, 'easeOutBounce').animate({width: '100%'}, 2000, 'easeOutBounce').animate({width: '450px'}, 2000, 'easeOutBounce').animate({width: '100%'}, 2000, 'easeOutBounce');
  }, 1000)
});

Anyways, here's my quick fix: https://i.imgur.com/PhzeOKq.gif

10

u/Arkhenstone Jan 18 '23

You're the hero we don't deserve.