jQuery通过扩展实现抖动效果的方法

gao44024 20 0 PDF 2020-11-29 09:11:00

本文实例讲述了jQuery通过扩展实现抖动效果的方法。分享给大家供大家参考。具体实现方法如下: 1. JavaScript代码如下: 复制代码 代码如下:jQuery.fn.shake = function(intShakes /*Amount of shakes*/, intDistance /*Shake distance*/, intDuration /*Time duration*/) { this.each(function() { var jqNode = $(this); jqNode.css({position: ‘relati

用户评论
请输入评论内容
评分:
暂无评论