When designing dynamo.js, I was torn on how one would use it on their website. Many libraries require you to something along the lines of $('#title).dynamo({ words: ['awesome', 'great', 'neat', 'cool'] }); etc, but it seemed like having such setup would be customizable, but annoying. In the end, I decided to abuse data attributes in the tag, and simply call .dynamo() on elements you want to scroll.
Some other setup ideas I had were to manually enter options inside of the divs you want to cycle, perhaps lis? I'm brand new to jQuery plugins so my apologies if this behavior is not normal.
If someone finds better setup options, such as
automatically initializing any divs of class dynamo
entering words to cycle through in a different manner than data-lines
When designing dynamo.js, I was torn on how one would use it on their website. Many libraries require you to something along the lines of
$('#title).dynamo({ words: ['awesome', 'great', 'neat', 'cool'] });
etc, but it seemed like having such setup would be customizable, but annoying. In the end, I decided to abusedata
attributes in the tag, and simply call.dynamo()
on elements you want to scroll.Some other setup ideas I had were to manually enter options inside of the divs you want to cycle, perhaps
li
s? I'm brand new to jQuery plugins so my apologies if this behavior is not normal.If someone finds better setup options, such as
dynamo
data-lines
feel free to submit a pull request.