Basic examples of what you can accomplish with CursorAnim.js
Move the cursor from its current position to another. The destination can be CSS selector or position coordinates {x,y}.
[
{
"action": "move",
"options": {
"selector": "#div1",
"duration": 800
}
},
{
"action": "move",
"options": {
"position": {
"x": 300,
"y": 600
},
"easing": "linear"
}
}
]
Click on the last targetted element with CSS selector or under the position you gave.
[
{
"action": "move",
"options": {
"selector": "#button_div2"
}
},
{
"action": "click"
}
]
Drag a jQuery UI Draggable and drop it on jQuery UI Droppable. It supports the helper clone option.
[
{
"action": "move",
"options": {
"selector": "#draggable"
}
},
{
"action": "drag"
},
{
"action": "move",
"options": {
"selector": "#div4"
}
},
{
"action": "drop"
}
]
Wait a certain amount of time in milliseconds.
[
{
"action": "move",
"options": {
"selector": "#div5"
}
},
{
"action": "wait",
"options": {
"duration": 1000
}
},
{
"action": "move",
"options": {
"selector": "#div6"
}
}
]
Type a text into text input or textarea during a certain amount of time.
[
{
"action": "move",
"options": {
"selector": "#inputdemo"
}
},
{
"action": "type",
"options": {
"strings": [
"This is a vrey v",
"This is a very very long sentence."
],
"startDelay": 500
}
}
]