Cursor can be moved to any given position on screen, or moved to the center of an object in any speed.
Trigger mouse click event on any given object.
Simulate typing inside input or textarea, character by character.
User has full control of the mouse cursor all the time, click mouse in everywhere on the page will exit the autoplay mode.
Scroll page or scroll any given object, supporting both horizontal and vertical direction.
Display an overlay message with FADE transition, message style is fully customizable.
Press space bar to pause or resume the running script.
wait->3000
move->#feature_box
move->#feature_box->3000
move->#feature_box->300,200
move->#feature_box->300,200->3000
move->300,200
move->300,200->3000
click->#login_btn
goclick->#login_btn
type->#email_input->example@gmail.com
gotype->#email_input->example@gmail.com
scrollx->1000
scrollx->#features_list->1000
scrolly->1000
scrolly->#features_list->1000
display->Scenario 1: Browse to a file.
display->Scenario 1: Browse to a file.->3000
display->message_class->Scenario 1: Browse to a file.
display->message_class->Scenario 1: Browse to a file.->3000
var script = [
"move->60,120",
"display->circle->DEMO",
"wait->1000",
"goclick->#feature_btn"
];
autoplay.initWithScript(script);
autoplay.init();
autoplay.loadScript(script);
<div id="autoplay_display">
<div class="message"><p>message goes here</p></div>
</div>
/* stylesheet */
#autoplay_display.circle {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: rgba(0,0,0,0.8);
}
#autoplay_display.circle .message {
width: 300px;
height: 300px;
position: absolute;
margin-left: -150px;
margin-top: -150px;
border-radius: 150px;
left: 50%;
top: 50%;
background: rgba(255,255,255,0.95);
font-size: 45px;
line-height: 300px;
color: #030303;
}