【发布时间】:2019-05-01 03:02:50
【问题描述】:
我已按照一些说明从该 CDN:https://cdnjs.com/libraries/animate.css/ 排队 Animate.css。我在 functions.php wordpress 文件中引用了第二个选项:https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css。
当我在我的网站上加载页面时,引用似乎出现在我的页面中,但是当我将 Animate.css 类添加到图像或 div 时,它不会像预期的那样为元素设置动画。
这是我添加到我的 functions.php 文件中的代码:
function enqueue_my_custom_styles() {
wp_enqueue_style( 'animate-css', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css', false );
}
add_action( 'wp_enqueue_scripts', 'enqueue_my_custom_styles' );
Here's a page where I've added the "pulse" class 指向下载图标/图像,但它没有跳动。
【问题讨论】:
标签: php css wordpress animate.css