CSS3 Animation with AngularJS not sliding correctly in Firefox

陌路散爱 提交于 2019-12-05 05:09:26

I updated the script to the newest version of libraries, and it work well.

jquery: 2.1.1 angular: 1.3.0 angular-animate: 1.3.0

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1-rc2/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0-beta.13/angular.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0-beta.13/angular-animate.js"></script>

I added those changes and this is the result. You can see it in this plunker link.

http://embed.plnkr.co/Ry7WTBPZKxeHhL1V5jKy/preview

You better use angular-ui library that will work very well with carasoul, i was myself having this issue

I forked your source code to give you a proposal of how you could do it. Your problem is probably in the versions of the libraries you are using.

Solution: 1. Change libraries versión. 2. Add jquery library for angular bestperformance 3. Add -moz- prefixed to css properties animation

-moz-transform `

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.0rc3/angular.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.0rc3/angular-animate.js"></script>
<script type="text/javascript" src="script.js"></script>

I added those changes and this is the result. You can see it in this plunker link. I Hope this helps.

http://embed.plnkr.co/Ry7WTBPZKxeHhL1V5jKy/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!