import ShakeAnimation from 'language_practice_platform/app/animations/shake_animation.js'
ShakeAnimation
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
Make all the actions connected to this module return {void} |
|
public |
makeNonShakable({Object},: *): void Make the given element non shakable |
|
public |
makeShakable({Object},: *): void Make the given element shakable |
|
public |
shakeElement({jQuery: *): void Function adds class shake, after the animation is done, the class shake is removed from the element |
|
public |
shakeEvent(elem: *): void Use the clicked element to invoke shakeElement |
|
public |
shakeFocusedElement(): void Shakes the element that has the focus |
Public Constructors
public constructor() source
Public Methods
public makeNonShakable({Object},: *): void source
Make the given element non shakable
Params:
Name | Type | Attribute | Description |
{Object}, | * | element |
Return:
void |
public makeShakable({Object},: *): void source
Make the given element shakable
Params:
Name | Type | Attribute | Description |
{Object}, | * | element |
Return:
void |
public shakeElement({jQuery: *): void source
Function adds class shake, after the animation is done, the class shake is removed from the element
Params:
Name | Type | Attribute | Description |
{jQuery | * | element}, elem |
Return:
void |
public shakeEvent(elem: *): void source
Use the clicked element to invoke shakeElement
Params:
Name | Type | Attribute | Description |
elem | * |
Return:
void |