fly
fly copied to clipboard
Add to cart - animation effect Demo
js有冲突用不了
打开链接的例子:https://codepen.io/hzxs1990225/pen/ogLaVp,点击加入购物车里面错误pen.js:6 Uncaught TypeError: flyer.fly is not a function
function saveShopping(id,name) { } onEnd无法识别
如题,不知道该怎么解决 我的代码 ``` $(".addcar").click(function(event){ var offset = $("#end").offset(); var addcar = $(this); var img = addcar.parent().find('img').attr('src'); var flyer = $(''); $ (window).unbind ('scroll'); flyer.fly({ start: { left: event.pageX, //开始位置(必填)#fly元素会被设置成position: fixed...
today we find our project not work,and the github`s demo is bad ,is auther still service

```javascript var distance = Math.sqrt(Math.pow(start.top - end.top, 2) + Math.pow(start.left - end.left, 2)), // 元素移动次数 steps = Math.ceil(Math.min(Math.max(Math.log(distance) / 0.05 - 75, 30), 100) / settings.speed), ratio = start.top ==...
在zepto里面用不了 需要怎么改,移动端用jquery太大了
bug问题:当有滚动条的时候,飞车进入购物车。不是购物车图标的位置。 原因:貌似源代码没有考虑滚动条的情况吧,当有滚定条的时候,需要#end的顶部距离减去滚动条的距离。这样有滚动条的时候,商品也能飞入到右侧的购物车的位置。 解决方案: $('html,body').on('click', addProduct); function addProduct(event){ var offset = $("#end").offset(), var scrollX=$(window).scrollTop(); //获取滚动条的距离。 flyer = $(''); if(scrollX==0) //判断滚动条的距离变化,如果没有变化 { flyer.fly({ start: { left: event.pageX, top: event.pageY }, end: {...