New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ractive-transitions-scale

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ractive-transitions-scale

Ractive.js scale transition plugin =================================

  • 0.1.0-pre
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ractive.js scale transition plugin

Find more Ractive.js plugins at ractivejs.org/plugins

Allows you to scale in / out elements. Optional fade animation transition is turned on by default for fancines and this can be turned off (see usage example below).

Usage

Include this file on your page below Ractive, e.g:

<script src='lib/Ractive.js'></script>
<script src='lib/Ractive-transitions-scale.js'></script>

Or, if you're using a module loader, require this module:

// requiring the plugin will 'activate' it - no need to use the return value
require( 'Ractive-transitions-scale' );

Note: you may need to change the paths where it says require( 'ractive' ) or define([ 'Ractive' ]...).

Example

<div intro="scale:{fade:false, duration:400}">This element will scale on intro</div>
<div intro-outro="scale:{fade:true, duration:400">This element will scale and fade when entering and exiting the DOM</div>

Plugin defaults

{
	duration: 250,
	easing: 'ease-out',
	fade: true,
	from: 0.3,
	to: 1
}

License

Copyright (c) 2013 Ayman Mackouly. Licensed WTFPL

FAQs

Package last updated on 10 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc