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.o7OP9mo 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
glutonium9mo 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.o7OP9mo 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
glutonium9mo ago
the circle will be deformed based on what factors
admin.o7
admin.o7OP9mo ago
on circle rotation
glutonium
glutonium9mo 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.o7OP9mo ago
based on time t?
glutonium
glutonium9mo ago
isn't that just animation?
admin.o7
admin.o7OP9mo ago
the circle gets deformed along with the rotation yeah, thats what im trying to do lol
glutonium
glutonium9mo ago
well then u won't need math lmao it's as easy as goin circle.rotation.x = 0.01
admin.o7
admin.o7OP9mo ago
i do? look at the animation rotation = degrees and deforming wouldn't be easy?
glutonium
glutonium9mo 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.o7OP9mo ago
yeah?
glutonium
glutonium9mo 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