vpaladino778
vpaladino778

Reputation: 157

CSS Tile flip animation assistance

So i am attempting to follow a tutorial ( http://davidwalsh.name/css-flip ) about creating a tile and being able to flip it over and have other content on the other side. I've attempted doing this but i cannot seem to figure it out. I posted a link below to what i have so far. If anyone could help me out i would really appreciate it. Thanks

http://fiddle.jshell.net/s5CCc/

Upvotes: 0

Views: 407

Answers (1)

Abraham Hamidi
Abraham Hamidi

Reputation: 13799

Replace ontouchstart with hover, because touch events are only handled on mobile devices, and hover phases will work on both, and I'm assuming you're testing this on your computer.

So to fix, add content to the front and back comments, as seen in the fiddle below, and change ontouchstart to hover.

Here is the fixed fiddle

Upvotes: 1

Related Questions