Channel: DevTips
Category: Education
Tags: how tocssdev tipsweb design tutsreact jsfriendly internetdesigner who codesprototypingadvicedevelopment advicegraphic designerweb designinternet codetipscode editingnewtoncodingreact.jswebdesignhtmlweb developmenttutorialprogrammingdesigners who codecoding tutorialnet tutswebsitedesign prototypingworkflowgraphic designjavascriptweb tutsprogramming helpinternet
Description: Sponsored by: Framer X, thanks! The easiest and most advanced design tool. Everything interactive and unlimited. Designer AND developers can use Framer. Every component can be shared (and is React). framer.com Let's over-engineer our CSS animation with a physically accurate gravity simulation to get that nice acceleration and bounce. We build a simulation, and let the simulation generate the CSS animation keyframes, which we bind to the dropping SVG. See the last episode where we very much failed in doing this. At least it was entertaining. โถ๏ธ youtube.com/watch?v=smBP4muoLYA ๐ฟ MILESTONES โฏ 1:29 Recap - last time we tried to animate without transforms ๐ฎ โฏ 2:32 Let's over-engineer this with a physics simulation ๐น โฏ 10:17 Taking the physics ๐ into CSS โฏ 15:00 Converting a Y translation simulation into a Scale transformation โฏ 18:20 Getting into when moving the SVG's โน positioning Try out the Observable notebook yourself ๐ beta.observablehq.com/@chhib/simulating-bouncing-ball-to-generate-realistic-physics-cs Burak Kanber's physics modeling post with gravity and drag ๐ burakkanber.com/blog/modeling-physics-javascript-gravity-and-drag Henrik Joreteg's create-keyframe-animation module to generate the CSS keyframes ๐ฝ npmjs.com/package/create-keyframe-animation How to transform something within an SVG using matrices โน stackoverflow.com/questions/20601904/svg-change-x-y-0-0-top-left-to-the-center-of-my-image DevTips is a weekly show for YOU who want to be inspired ๐ and learn ๐ about programming. Hosted by David and MPJ - two notorious bug generators ๐ and teachers ๐ค. Exploring code together and learning programming along the way - yay! DevTips has a sister channel called Fun Fun Function, check it out! โค๏ธ youtube.com/funfunfunction #css #animation #physics