Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created July 14, 2014 03:29
Show Gist options
  • Select an option

  • Save tonetheman/109d6050e75eec54974c to your computer and use it in GitHub Desktop.

Select an option

Save tonetheman/109d6050e75eec54974c to your computer and use it in GitHub Desktop.
swirly testing!
<html>
<head>
<script src="jquery-1.11.1.js"></script>
<script src="swirly.js"></script>
</head>
<body>
<div id="target"></div>
<script>
$(document).ready(function() {
options = {
phaseShift:90,
swirlySize:28,
reverseX:-1,
reverseY:-1,
initialX:65,
initialY:65,
frequencyX:2100,
frequencyY:2240,
offset:10,
scale: 40,
colors:['red','green'] // Customize colors of the two swirlies
};
var interval = $("#target").swirly(options);
console.log("hello!!!");
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment