When an element of the page enters the viewport, it adds a CSS class to that element.
As of April 2026, Change class in viewport: create animations with pure CSS is a WordPress animations plugin with 60 active installations and a 5/5 rating from 1 reviews. It has been downloaded 2.5K+ times in total. Requires WordPress 4.6+ and PHP 5.6+. Available on WordPress.org since 2021. Top alternative: View Transitions.
When a specific element of the page enters the viewport, it adds the CSS class “in-viewport” to that element.
When the same element goes out from the viewport it remove the CSS class “in-viewport” and adds the class “not-in-viewport”.
To target the elements, you just need to assign them the CSS class “cciv-el”.
It’s useful to add your custom animations on scroll just with a few lines of CSS.
This is a plugin for CSS developers who want to add simple but effective animation only with pure CSS.
In case the user disables JavaScript, the body of the page will have the CSS class “cciv-no-script”. Use it to don’t show strange things when JavaScript is disabled.
The plugin is ultra light. It adds a few lines of pure JavaScri…
| WordPress | 4.6+ requiredTested up to 6.9.4 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.