DEV Community

Discussion on: Animate "details" tag with pure CSS

Collapse
larsklopstra profile image
Lars Klopstra ⚡

Is there a reason why you picked margin over transform?

Collapse
pixmy profile image
Arturo Cabrera Author

Hello!

Yes, I really wanted to keep this little animation very simple, margin is the first rules you learn in CSS, but yeah... a translate should be much better :)