-
Notifications
You must be signed in to change notification settings - Fork 64
onScreen Animation
Guy Willis edited this page Dec 7, 2022
·
2 revisions
Whilst not strictly part of the Vanilla theme, there is functionality available that can be used to animate elements of Adapt when they come into view. The _onScreen
property is available for both the Framework and the Authoring Tool and can be applied to content objects, articles, blocks, or components - it is recommend, however, to limit usage of the _onScreen
property to blocks and components.
"_onScreen": {
"_isEnabled": true,
"_classes": "fade-in-bottom",
"_percentInviewVertical": 50
}
There are a number of pre-defined classes that can be used to animate elements within Adapt. They are;
Class | Definition | Released |
---|---|---|
fade-in |
Fades the targeted element in from 0 opacity to 1 | v5.0.0 |
fade-in-left |
Fades and slides the targeted element in from the left side | v5.0.0 |
fade-in-right |
Fades and slides the targeted element in from the right side | v5.0.0 |
fade-in-top |
Fades and slides the targeted element in from the top | v5.0.0 |
fade-in-bottom |
Fades and slides the targeted element in from the bottom | v5.0.0 |
Additional classes can be used but they must be predefined in one of the Less files
Define the percent in-view the targeted element animates on screen. The default is 50
- Framework in Five Minutes
- Setting up Your Development Environment
- Manual Installation of the Adapt Framework
- Adapt Command Line Interface
- Common Issues
- Creating Your First Course
- Styling Your Course
- Core Plugins in the Adapt Learning Framework
- Deploying and Testing Your Adapt Course
- Contributing to the Adapt Framework
- Git Flow
- Adapt API
- Adapt Command Line Interface
- Core Events
- Core Model Attributes
- Core Modules
- Web Security Audit
- Peer Code Review
- Plugins
- Developing Plugins
- Developer's Guide: Components
- Developer's Guide: Theme
- Registering a Plugin
- Semantic Version Numbers
- Core Model Attributes
- Adapt Command Line Interface
- Accessibility
- Adapt Framework Right to Left (RTL) Support