Hey, whassup coding people
hope you all doing little or progress in your professional journey.
Actually, this post is a part of our 20 day CSS animation post.
20 Days of CSS animation post๐ช
๐ฉ Atul Prajapati ๐ฎ๐ณ ใป Jan 30 '21 ใป 1 min read
And in this post, we will learn about "How to set element centre with transform property".
there are just 4 lines of code which is this
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- position: fixed;
Not clear, see the whole picture
And if you guys interested in my free website templates please download them here ๐ AtulCodex Marketplace ๐ช.
Top comments (2)
Or we can use
And shortly only
Yeah sure, hey temani thanks for sharing this code ๐