Y

YouLibs

Remove Touch Overlay

CSS Animation with Physics Simulation ๐Ÿ“ˆ (so much over-engineering โš™๏ธ)

Duration: 25:07Views: 12.4KLikes: 351Date Created: Oct, 2018

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

Swipe Gestures On Overlay