1、调用CSS样式:
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Oswald">
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Open+Sans">
<link rel="stylesheet" href="css/jcslider.css">
<link rel="stylesheet" href="css/animate.min.css">
2、调用JS插件代码:
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.jcslider.js"></script>
3、添加HTML代码:
将<!--效果html开始-->......<!--效果html结束-->之间的html和js代码;放在<body></body>之间。
4、JS实例化代码:
<script>
$(document).ready(function() {
$('.jc-slider').jcSlider({
animationIn: 'bounceInRight',
animationOut: 'bounceOutLeft',
stopOnHover: false
});
$('.jc-slider2').jcSlider({
animationIn: 'zoomInUp',
animationOut: 'flipOutX',
stopOnHover: false
});
$('.jc-slider3').jcSlider({
animationIn: 'flipInX',
animationOut: 'shake',
stopOnHover: false
});
$('.jc-slider4').jcSlider({
animationIn: 'zoomIn',
animationOut: 'zoomOut',
stopOnHover: false
});
});
</script>