JSPM

prepare-transition

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4403
  • Score
    100M100P100Q114753F
  • License MIT

The prepareTransition plugin sets display and visibility to override any existing display and visibility properties.

Package Exports

  • prepare-transition

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prepare-transition) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prepareTransition jQuery Plugin

The prepareTransition plugin sets display and visibility to override any existing display and visibility properties. This ensures that the element can still animate without issue. For users who don't have support for CSS transitions, then the element will still work correctly. Once the transition is complete, the class name is removed.

Example usage:

$('#btn-test').bind('click', function(){
    $('.msg').prepareTransition().toggleClass('hidden');
});