Crate.js Object Maker
View source
Body
(required)
accepts full html markup
Title
accepts full html markup
Footer
accepts full html markup
Parent Element
defaults to body if blank, include the selector (eg .class or #id)
Position
defaults to the center of the body/element.
Top
any css measurement accepted (px, em, %, calc(), etc...)
Left
any css measurement accepted (px, em, %, calc(), etc...)
Closing Actions
enable to turn on actions, or enable and leave options blank for no way to close the crate
Button
default if closing action is left off
Click Inside
Click Outside
Key Codes
JavaScript keyCode
unicode values. Comma delimited.
Overlay color
css color names, hex color code, rgb, or rgba.
Classes to attach
Add more classes
Element
include the selector (eg .class or #id)
CSS Classname
add multiple classes to
this
element by adding a space delimiter
On Open
Delay
time in ms
Action
must be a function, no strings
On Close
Delay
time in ms
Action
must be a function, no strings