DEV Community

Discussion on: Animate "details" tag with pure CSS

larsklopstra profile image
Lars Klopstra ⚡

Is there a reason why you picked margin over transform?

pixmy profile image
Arturo Cabrera Author


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 :)