jQuery

【jQuery】任意の要素を振動、揺れさせるjRumble

November 8, 2016
jRumble

jRumbleは選択した任意の要素を振動、揺れさせるjQueryプラグイン。

Basic Usage

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jrumble.1.3.js"></script>
// Initialize jRumble on Selector
$('#rumble-element').jrumble();

// Start rumble on element
$('#rumble-element').trigger('startRumble');

// Stop rumble on element
$('#rumble-element').trigger('stopRumble');

Options

Option Default
x 2
y 2
rotation 1
speed 15
opacity false
opacityMin .5

MIT