CSS Animation with Physics Simulation 📈 (so much over-engineering ⚙️)

  Рет қаралды 13,314

DevTips

DevTips

Күн бұрын

Пікірлер
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Try out the Observable notebook yourself. You can fork it and make modifications. Change the weight, drag, gravity to get your very own dropping plate. Paste your own SVG!! beta.observablehq.com/@chhib/simulating-bouncing-ball-to-generate-realistic-physics-cs
@TheChodex
@TheChodex 6 жыл бұрын
Great job! You are getting better and better at making these videos! Keep it up!
@MohammadHosry
@MohammadHosry 6 жыл бұрын
1:50 it's my code 😃
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Yeah! Thanks 🙏🏻
@PaulMcCannWebBuilder
@PaulMcCannWebBuilder 6 жыл бұрын
If you add a scaleY, you can use text in the circle that won't pixelate. (Or use a SVG): codepen.io/paulmccann/pen/JaBRwR
@md.akib5124
@md.akib5124 6 жыл бұрын
umm I think css transition property has a thing called cubic-beizer which can do this sorta effect. I saw that on this channel from travis.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Somewhere in there I explain I didn't get that realistic feel from the bezier curve. Couldn't get it realistic enough. For most projects it's good enough though. But this not most projects. 😏
@md.akib5124
@md.akib5124 6 жыл бұрын
@@OfficialDevTips oh yeah it's at 2:54 minutes. My English hearing power's horrible 😁. sometimes this happens even with my native lang.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
My pronunciation is terrible as well :D
@karina_kurenkova
@karina_kurenkova 4 жыл бұрын
This is sooo inspiring!! Thank you!!!
@dirkveefkind2245
@dirkveefkind2245 6 жыл бұрын
Now put a photo of your forehead in the background and your goal has been achieved.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
WAAAOOOW YAS. If there's a continuation of this project, that was a pretty great idea!
@martinnyagah4313
@martinnyagah4313 6 жыл бұрын
Remarkable job there!!
@roquefore
@roquefore 6 жыл бұрын
"Haha, i'm cheating! Nevermind, i dont care" - a sort of what i tell myself each time i do such a stuff xD
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Haha, especially at the end of the day... 😏
@dheerajmantena3307
@dheerajmantena3307 6 жыл бұрын
To make its center we can also give the container div top and left 50 % 50 % with absolute position .... nice video , thank you!!!
@theITGuy-no3nt
@theITGuy-no3nt 6 жыл бұрын
I very much enjoyed that. Ta!
@TysonKemp
@TysonKemp 6 жыл бұрын
Without looking at the code I think you should change "ease" on the animation to "ease-out".
@fredericrobert9294
@fredericrobert9294 6 жыл бұрын
I would do it all in SVG and JSON using Bodymovin & Lottie. Clearly not the same process but would take me approximately 10 minutes total. ( You have to know After Effects, of course ).
@zeocamo
@zeocamo 6 жыл бұрын
you should try only to use const if you can, the ball is a let. :) const is good, full immutable is better :)
@MuhammadAdnan-gx6rd
@MuhammadAdnan-gx6rd 6 жыл бұрын
WordPress theme development ? Any future vdos
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Very low probability we’d go into PHP. Don’t count on it. 😕
@RomanSteiner_xD
@RomanSteiner_xD 6 жыл бұрын
Don't use scale or matrices (unless you multiply them also with a view projection matrix), use translate3d. Much easier: codepen.io/rasteiner/full/yxZYqL/ If you work with `transform: translate3d(x,y,z)` and update the z axis, you don't need to approximate the exponential curve of perspective with `scale` (which is linear).
@angladephil
@angladephil 6 жыл бұрын
On physics, see P5.js and matter.js librairies. Open source and free, very easy to use ...
@Djzaamir
@Djzaamir 6 жыл бұрын
Hi David, do you guys plan to work on other Languages as well like Java or maybe c++ ? and maybe develop some cool apps with them
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Maybe dip my toes into Python to experiment more with Machine Learning, and/or other functional languages. But probably not Java or C++. This channel is still more around the concept of the "web" and that's what we enjoy the most.
@muski282
@muski282 6 жыл бұрын
Why would you even change from the awesome intro animation Travis used, to the MOST boring animation you actually create?
@szyszak
@szyszak 6 жыл бұрын
Is it just me, or does Framer look almost exactly like Figma? Even the core features are the same.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
It seems everything looks like Sketch/Figma these days. Thing is with Framer X is that everything becomes actual React components. You could sort of take the generated code from Framer X and drop it into your project.
@francis_n
@francis_n 6 жыл бұрын
That thumbnail is quite freaky
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
That a piece of electric tape can make such a freaky impression is very impressive.
@jobybejoy8219
@jobybejoy8219 6 жыл бұрын
Can v have a livestream plsssssss.... ??? miss those days when travis used to live !!
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Yes we will dip our toes inte live streaming. Can’t promise when though.
@collection8325
@collection8325 6 жыл бұрын
#Brother i just joing this channel, not so far. ACUUaly i wanna built a #SOCIAL_site. so what's your suggestion ???????????????/////
CSS Trigonometry is surprisingly useful
18:41
Kevin Powell
Рет қаралды 56 М.
Let’s Animate with CSS (and Failing Fast!)
33:28
DevTips
Рет қаралды 20 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Our favourite ES2018 features 💖
26:04
DevTips
Рет қаралды 22 М.
Awesome Scrolling SVG Line Drawing - How they did it!
21:45
DesignCourse
Рет қаралды 269 М.
How to make shapes with CSS
18:35
Kevin Powell
Рет қаралды 353 М.
Complex SVG Animations Made Simple with JavaScript
22:04
DesignCourse
Рет қаралды 77 М.
Animating circles with fake shadows #cssOnly #frontend
16:41
FrontendTips
Рет қаралды 50 М.
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 1,1 МЛН
Animating CSS Perspectives for UI Design
20:46
DesignCourse
Рет қаралды 115 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 97 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 61 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН