Last active
June 7, 2016 03:08
-
-
Save neilgee/6fab8b102e09c4e981b4 to your computer and use it in GitHub Desktop.
Add CSS 3 Animations to Your Genesis Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#my-animated-element { | |
-webkit-animation-duration: 3s; | |
animation-duration: 3s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //<~ don't add me in | |
//Animate CSS | |
add_action( 'wp_enqueue_scripts', 'wpb_animate_styles' ); | |
function wpb_animate_styles() { | |
wp_enqueue_style( 'animate-css', get_stylesheet_directory_uri() . '/css/animate.min.css', '3.5.0', 'all'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="animated bounce">My Animated Element</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment