Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add puff-effect

  • Loading branch information...
commit 873d679bc16182f7bb188ee992f4d5283b43348b 1 parent 5965945
@jzaefferer jzaefferer authored
Showing with 37 additions and 0 deletions.
  1. +37 −0 entries/puff-effect.xml
View
37 entries/puff-effect.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="../entries2html.xsl" ?>
+<entry name="puff" namespace="effect" type="effect">
+ <desc>
+ Creates a puff effect by scaling the element up and hiding it at the same time.
+ </desc>
+ <longdesc>This is the only effect without a separate file, it shares a file with the scale effect.</longdesc>
+ <options>
+ <option name="mode" type="String" default="hide">
+ <desc>The mode of the effect. Can be "show" or "hide"</desc>
+ </option>
+ <option name="percent" type="Number" default="150">
+ <desc>The percentage to scale to.</desc>
+ </option>
+ <option name="duration" type="Number" default="400">
+ <desc>The number of ms the animation will run for</desc>
+ </option>
+ <option name="easing" type="String" default='"swing"'>
+ <desc>The easing function to use</desc>
+ </option>
+ <option name="complete" type="function">
+ <desc>A callback function, executed when the effect completes</desc>
+ </option>
+ </options>
+ <example>
+ <desc>Puff the element away.</desc>
+ <code><![CDATA[
+$("div").click(function () {
+ $(this).hide("puff", {}, 1000);
+});
+]]></code>
+ <html><![CDATA[
+<div></div>
+]]></html>
+ </example>
+ <category slug="effects"/>
+</entry>
Please sign in to comment.
Something went wrong with that request. Please try again.