douxin1956 2017-02-24 12:54
浏览 55

使用jquery为wordpress添加滚动效果

I am trying to implement this effect in wordpress:

http://www.jqueryscript.net/demo/jQuery-Plugin-For-CSS-Easing-Based-Scroll-Animations-circus-scroll-tween/

I followed the implementation guide but it is not animating.

I included the js files in function.php, like this:

<?php
function addScroll_scripts() {
    wp_enqueue_script('js1', get_template_directory_uri() . '/circus-scroll-tween.min.js', array('jquery'), '',  false);
    wp_enqueue_script('js2.frame-carousel.min', get_template_directory_uri().'/main.min.js', array(), '0.1.0', false );
}
add_action( 'wp_enqueue_scripts', 'addScroll_scripts' );
?>

I've worked on this problem for a day but I still don't know what's the problem. I almost forgot to say that I put the js files directly in my theme folder.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建