Data attributes should take the following form:
-- data-*(verb)* - defines main interaction
+- data-{{verb}}={{plugin}} - defines main interaction
- data-target || href^=# - defined on "control" element (if element controls an element other than self)
-- data-*(noun)* - defines class instance options
+- data-{{noun}} - defines class instance options
examples:
$tip = this.tip()
this.setContent()
- if (this.options.animate) {
+ if (this.options.animation) {
$tip.addClass('fade')
}
$.fn.twipsy.Constructor = Twipsy
$.fn.twipsy.defaults = {
- animate: true
+ animation: true
, delay: 0
, selector: false
, placement: 'above'