Face-ID Like Animation

Hi, is it possible to replicate this with CSS (and javascript if needed)? If yes, how do I do that?
No description
14 Replies
admin.o7
admin.o7OP10mo ago
Of course im not asking for the code, im just wondering how could I do such thing? like, what do I need to achieve? This looks like a 3d animation so I need some sort of 3d libraries and some math?
glutonium
glutonium10mo ago
u maybe able to do it with css check out 3d animations in css if u use js then u can easily do it with threejs u won't need math as far as i can think off if u use threejs but tbh, if u r using that in a webpage, just use a gif sometimes it's the better option
admin.o7
admin.o7OP10mo ago
I feel like using Threejs along with 2 basic circles should do the trick i need some math to dynamically rotate and "disform" the circles
glutonium
glutonium10mo ago
the circle will be deformed based on what factors
admin.o7
admin.o7OP10mo ago
on circle rotation
glutonium
glutonium10mo ago
ok but m asking it will be deformed based on what? u said u need math to deform ir but that math will be operated over what? like based on this factor the circle will rotate this much
admin.o7
admin.o7OP10mo ago
based on time t?
glutonium
glutonium10mo ago
isn't that just animation?
admin.o7
admin.o7OP10mo ago
the circle gets deformed along with the rotation yeah, thats what im trying to do lol
glutonium
glutonium10mo ago
well then u won't need math lmao it's as easy as goin circle.rotation.x = 0.01
admin.o7
admin.o7OP10mo ago
i do? look at the animation rotation = degrees and deforming wouldn't be easy?
glutonium
glutonium10mo ago
the deforming u r talking about.. is it, the way it goes from circular shape to elliptic shape? as it rotates
admin.o7
admin.o7OP10mo ago
yeah?
glutonium
glutonium10mo ago
well u don't have to worry about that lol how the transformation happens is taken care of by the vertex shader all u have to worry about is how fast it'll rotate and which direction it rotates
Want results from more Discord servers?
Add your server