WordPress plugin intelligence profile

Change class in viewport: create animations with pure CSS

When an element of the page enters the viewport, it adds a CSS class to that element.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version0.0.5
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 4.6 · PHP 5.6
Directory statusactive
Last directory update22 Aug 20262mo ago
Active installations60Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Change class in viewport: create animations with pure CSS version 0.0.5 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

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 JavaScript code in the footer and nothing else.

No additional HTTP requests, no additional queries to the database.

If you measure the performance with or without this plugin, you will not notice any difference.

This plugin is useful if:

  • You know how to create an animation in pure CSS.
  • You have the possibility to assign a CSS class to the element you want to animate.
  • You have the possibility to add your custom CSS.

With the following few lines of pure CSS for example you can create a rotation effect.

cciv-el{transition: 2s transform ease}

in-viewport{transform:rotateY(0deg)}

not-in-viewport{transform:rotateY(180deg)}

important}

You can read more about CSS animations and transitions on W3Schools:

asp

asp

You can change the selector to target the elements that you want to animate using the filter ‘cciv_el_selector’.

php of your child theme if any, or in a functional plugin:

cciv-el but by what you specify here }

Don’t lose time any more with heavy jQuery effects, you need just a few lines of CSS, the rest is given by this plugin using few lines of 100% pure JavaScript inlined in the footer.

No performance loss, and no time loss if you have CSS skills.

Help

If you need help open a thread on the support forum of this plugin.

php. Need a step-by-step guide? Read this detailed tutorial on how to enable debugging in WordPress to learn more.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • css effects
  • animations
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 4.6 · PHP 5.6
Update activity22 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.