The visualization options
|
pathToFolder |
string |
path to folder with all LivIcons |
'is_set_by_plugin' |
This option is set by WP plugin itself during its activation. And, basically, you don't need to change it.
|
name |
string |
SVG file name |
'bell.svg' |
Any SVG file name for an icon from the /wp-content/plugins/livicons-evolution/assets/svg/ folder. For example 'bell' or 'bell.svg' . You may omit the .svg extension.
|
style |
string |
original
solid
filled
lines
lines-alt
linesAlt |
'original' |
The one of the five (5) possible styles ('lines-alt' and 'linesAlt' are the same).
|
size |
string |
value in px or % |
'60px' |
A desired value in pixels or %.
Also can be controlled by an external style sheet for different media queries for example. Please look at the end of /wp-content/plugins/livicons-evolution/assets/css/LivIconsEvo.WP.css file.
|
strokeStyle |
string |
original
round
square
|
'original' |
Controls how strokes will look like.
|
strokeWidth |
string or numeric |
original
or pixels
|
'original' |
The stroke width of shapes. Leave it 'original' or set any numeric value in pixels.
|
tryToSharpen |
boolean |
true
false |
true |
Apply or not a micro shift of SVG shapes to try to make them more sharp (crisp). However, sometimes for different icon size it's better to set it to false
|
rotate |
string or numeric |
none
[0 ... 360] |
'none' |
The 'none' or any desired value in deg from range 0 ... 360.
|
flipHorizontal |
boolean |
true
false |
false |
true will flip an icon horizontally.
|
flipVertical |
boolean |
true
false |
false |
true will flip an icon vertically.
|
strokeColor |
string |
HEX code |
'#82CEF9' |
The stroke color of SVG shapes. Takes effect when style option is set to either 'filled' or 'lines' or 'lines-alt' or 'linesAlt' . |
strokeColorAction |
string |
HEX code |
'#e74c3c' |
Take effect when colorsOnHover or colorsWhenMorph options are set to 'custom' and style option is either 'original' or 'filled' or 'lines' . |
strokeColorAlt |
string |
HEX code |
'#E67E22' |
The alternative stroke color of SVG shapes. Takes effect when style option is set to either 'lines-alt' or 'linesAlt' . |
strokeColorAltAction |
string |
HEX code |
'#34495e' |
Take effect when colorsOnHover or colorsWhenMorph options are set to 'custom' and style option is 'lines-alt' or 'linesAlt' . |
fillColor |
string |
HEX code |
'#d4ebf9' |
The fill color of SVG shapes. Takes effect when style option is set to 'filled' . |
fillColorAction |
string |
HEX code |
'#34495e' |
Take effect when colorsOnHover or colorsWhenMorph options are set to 'custom' and style option is either 'original' or 'filled' . |
solidColor |
string |
HEX code |
'#999999' |
The main color of SVG shapes when style option is set to 'solid' . |
solidColorAction |
string |
HEX code |
'#000000' |
Take effect when colorsOnHover or colorsWhenMorph options are set to 'custom' and style option is 'solid' . |
solidColorBg |
string |
HEX code |
'#ffffff' |
The color of a background element on your page, on which an icon will appear. Takes effect when style option is set to 'solid' . |
solidColorBgAction |
string |
HEX code |
'#ffffff' |
Take effect when style option is 'solid' . This option is useful when the background element (on which a LivIcon lays) changes its color on hover event too. |
colorsOnHover |
string |
none
lighter
darker
custom
hue0 ... hue360 |
'none' |
The one of the five (5) possible effects. For example, 'hue180' will change an icon's colors around 180 deg of a color wheel.
|
colorsHoverTime |
numeric |
seconds |
0.3 |
The duration of changing colors, when colorsOnHover option is not set to 'none' . |
colorsWhenMorph |
string |
none
lighter
darker
custom
hue0 ... hue360 |
'none' |
For morph icons only! The one of the five (5) possible effects. For example, 'hue180' will change a morph icon's colors around 180 deg of a color wheel.
|
brightness |
numeric |
factor |
0.10 |
The factor (multiplier) of changing colors' brightness, when colorsOnHover or colorsWhenMorph options are set to 'lighter' or 'darker' . |
saturation |
numeric |
factor |
0.07 |
The factor (multiplier) of changing colors' saturation, when colorsOnHover or colorsWhenMorph options are set to 'lighter' or 'darker' . |
morphState |
string |
start
end |
'start' |
For morph icons only. The initial state of morph icon.
|
morphImage |
string |
none
or a URL |
'none' |
For background morph icons only! Backgrounds morph icons can have an image (JPG, PNG, GIF, SVG) inside them. For example, avatars or photos of your users can be placed inside "morph-square-sticker.svg" icon. A URL can look like 'http://www.your_site.com/path/to/user_avatar.jpg' .
|
allowMorphImageTransform |
boolean |
true
false |
false |
For morph icons only! If true the inside image will rotate and/or flip with a morph icon together.
|
strokeWidthFactorOnHover |
string or numeric |
none
or numeric value
|
'none' |
'none' or numeric value. Take effect on mouse hover event. For example, to increase stroke width twice set the option to 2 .
|
strokeWidthOnHoverTime |
numeric |
seconds
|
0.3 |
The duration of changing stroke width when strokeWidthFactorOnHover option is set to not 'none' . |
keepStrokeWidthOnResize |
boolean |
true
false |
false |
true will keep the the stroke width of shapes when the strokeWidth option is not set to 'original' . Takes effect when and if an icon's size are changed with, for example, "resize" or "orientationchange" event.
|
The animation options
|
animated |
boolean |
true
false |
true |
If false , an icon is static. |
eventType |
string |
none
hover
click |
'hover' |
If 'none' an icon can be still animated with JavaScript method .playLiviconEvo() . |
eventOn |
string |
self
parent
grandparent
#some_id
.some_class |
'self' |
"Hover" and "click" events can be bind not only on an icon itself ('self' value), but on 'parent' , 'grandparent' or any other element with #some_id or .some_class on your page.
|
autoPlay |
boolean |
true
false |
false |
Please be careful with true value, especially with "looped" animations. |
delay |
numeric |
seconds |
0 |
The delay in seconds before an animation starts. |
duration |
string or numeric |
default
or seconds |
'default' |
The total duration of an animation in seconds. The 'default' value is different for each icon and is stored in SVG icon files themselves in the 'data-animoptions' attribute. |
repeat |
string or integer |
default
loop
or number |
'default' |
The total number of an animation repeats. The 'default' value is different for each icon and is stored in SVG icon files themselves in the 'data-animoptions' attribute. This option does not take effect on morph icons.
Please be careful with 'loop' value. |
repeatDelay |
string or numeric |
default
or seconds |
'default' |
The delay in seconds between repeats. The 'default' value is different for each icon and is stored in SVG icon files themselves in the 'data-animoptions' attribute. This option does not take effect on morph icons. |
drawOnViewport |
boolean |
true
false |
false |
If true , an icon will be "drawn" when it appears a first time in a browser viewport.
|
viewportShift |
string |
none
one-half
oneHalf
one-third
oneThird
full |
'oneHalf' |
Take effect when drawOnViewport is set to true . It means that animation starts only if SVG is in a users browser's viewport at least the given value, calculated from SVG height. |
drawDelay |
numeric |
seconds |
0 |
The delay in seconds before a "drawing" animation starts. |
drawTime |
numeric |
seconds |
1 |
The duration in seconds for a "drawing" animation of each icon's shape. |
drawStagger |
numeric |
seconds |
0.1 |
The delay in seconds for a "drawing" animation for each icon's shape.
|
drawStartPoint |
string |
start
middle
end |
'middle' |
The starting point from where a "drawing" animation starts for each icon's shape.
|
drawColor |
string |
same
or HEX code |
'same' |
The color for "drawing" lines.
|
drawColorTime |
numeric |
seconds |
1 |
The duration in seconds for a changing colors when a "drawing" animation ends. |
drawReversed |
boolean |
true
false |
false |
true will reverse the order of shapes drawing. |
drawEase |
string or object |
ease value |
'Power1.easeOut' |
The easing function according to GreenSock Ease Visualizer. |
eraseDelay |
numeric |
seconds |
0 |
The delay in seconds before an "erasing" animation starts. |
eraseTime |
numeric |
seconds |
1 |
The duration in seconds for an "erasing" animation of each icon's shape. |
eraseStagger |
numeric |
seconds |
0.1 |
The delay in seconds for an "erasing" animation for each icon's shape. |
eraseStartPoint |
string |
start
middle
end |
'middle' |
The starting point from where an "erasing" animation starts for each icon's shape. |
eraseReversed |
boolean |
true
false |
true |
true will reverse the order of shapes erasing. |
eraseEase |
string or object |
ease value |
'Power1.easeOut' |
The easing function according to GreenSock Ease Visualizer. |
touchEvents |
boolean |
true
false |
false |
This option is highly experimental!
Apply or not special events handlers (touchstart and touchend) for touch devices.
It prevents default action of the events.
Please carefully test on touch supported devices within a draft page/post before using on a production site.
|
Callback functions (using via programmatic API only!)
|
beforeAdd |
function |
function or false |
false |
Is fired before a LivIcon is added first time on a page. Works inside .addLiviconEvo() method. |
afterAdd |
function |
function or false |
false |
Is fired after a LivIcon is successfully added first time on a page. Works inside .addLiviconEvo() method. |
beforeUpdate |
function |
function or false |
false |
Is fired before a LivIcon is updated. Works inside .updateLiviconEvo() method. |
afterUpdate |
function |
function or false |
false |
Is fired after a LivIcon is successfully updated. Works inside .updateLiviconEvo() method. |
beforeRemove |
function |
function or false |
false |
Is fired before a LivIcon is removed. Works inside .removeLiviconEvo() method. |
afterRemove |
function |
function or false |
false |
Is fired after a LivIcon is removed. Works inside .removeLiviconEvo() method. |
beforeDraw |
function |
function or false |
false |
Is fired before a LivIcon is drawn. Works inside .drawLiviconEvo() method. |
afterDraw |
function |
function or false |
false |
Is fired after a LivIcon is drawn. Works inside .drawLiviconEvo() method. |
duringDraw |
function |
function or false |
false |
Is fired during a LivIcon is being drawn. Works inside .drawLiviconEvo() method.
Function is fired a lot of times, so please be careful. |
beforeErase |
function |
function or false |
false |
Is fired before a LivIcon is erased. Works inside .eraseLiviconEvo() method. |
afterErase |
function |
function or false |
false |
Is fired after a LivIcon is erased. Works inside .eraseLiviconEvo() method. |
duringErase |
function |
function or false |
false |
Is fired during a LivIcon is being erased. Works inside .eraseLiviconEvo() method.
Function is fired a lot of times, so please be careful. |
beforeAnim |
function |
function or false |
false |
Is fired before a LivIcon's animation is started. Works inside .playLiviconEvo() method. |
afterAnim |
function |
function or false |
false |
Is fired after a LivIcon's animation is finished. Works inside .playLiviconEvo() method. |
duringAnim |
function |
function or false |
false |
Is fired when a LivIcon's animation is playing. Works inside .playLiviconEvo() method.
Function is fired a lot of times, so please be careful. |