Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Aleks Dahlberg
19,103 PointsHow can I get this CSS to animate?
I am using this http://daneden.github.io/animate.css/ to try and animate an image
HTML:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link href = "css/style.css" rel = "stylesheet"> <link rel="stylesheet" href="css/animate.css"> </head> <body>
<img class = "flash" src="images/smaggle-logo.png">
</body>
</html>
CSS (style.css)
body {background-color:#79B29C}
(animate.css)
@charset "UTF-8";
/*! Animate.css - http://daneden.me/animate Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2013 Daniel Eden */
.animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; }
.animated.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; }
.flash { -webkit-animation-name: flash; animation-name: flash; }
2 Answers
Aleks Dahlberg
19,103 PointsHTML
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link href = "css/style.css" rel = "stylesheet"> <link rel="stylesheet" href="css/animate.css"> </head> <body>
<img class = "flash" src="images/smaggle-logo.png">
</body>
</html>
Aleks Dahlberg
19,103 Pointssolved