Wrapper class for https://erikflowers.github.io/weather-icons/.

Class name

E.widget.weathericon (0.2.0)

Methods

Method Parameters Returns Description Example
attr key, value this Add attribute key/value to component attr('id','myicon')
build string Build string of component markup build()
append jquery selector boolean Build and append string to DOM append('#mydiv')
flip h/horz/horizontal
v/vert/vertical
this Flip icon (.wi-flip-{{dir}}) flip('v')
rotate 90 180 270 this Rotate icon (.wi-rotate-{{degrees}}) rotate(90)
wind this Enable wind icon subset (.wi-wind) wind()

Examples

Default
Flipped
Rotated
Wind
Last modified: 2016-02-05