Skip to content

Effects rewrite #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions entries/cssClip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0"?>
<entry name="cssClip" type="method" return="jQuery">
<title>.cssClip()</title>
<desc>Getter/setter for an object version of the CSS <code>clip</code> property.</desc>
<added>1.12</added>
<signature>
<argument name="dimensions" type="Object" optional="true">
<desc>When setting the CSS <code>clip</code> property, specify the <code>top</code>, <code>right</code>, <code>bottom</code> and <code>left</code>, properties to use the <code>rect()</code> style.</desc>
</argument>
</signature>
<example>
<height>175</height>
<css><![CDATA[
.clipped {
position: absolute;
width: 150px;
height: 150px;
background: #3b679e;
background: linear-gradient(to bottom, #3b679e 0%, #2b88d9 50%, #207cca 51%, #7db9e8 100%);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces after commas.

]]></css>
<code><![CDATA[
var clippings = [
{
top: 10,
right: 50,
bottom: 50,
left: 5
},
{
top: 0,
right: 150,
bottom: 150,
left: 0
}
];
var index = 1;
var box = $( ".clipped" ).cssClip( clippings[ 0 ] );

$( document ).click(function() {
box.animate( {
clip: clippings[ index++ % 2 ]
}, 2000 );
});

]]></code>
<html><![CDATA[
Click anywhere!
<div class="clipped"></div>
]]></html>
</example>
<category slug="methods"/>
<category slug="overrides"/>
<category slug="utilities"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like effects would be reasonable too.

<category slug="effects"/>
<category slug="effects-core"/>
</entry>
3 changes: 3 additions & 0 deletions entries/size-effect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<entry name="size" type="effect">
<title>Size Effect</title>
<desc>Resize an element to a specified width and height.</desc>
<longdesc>
<p>When using this effect with the <a href="/show/"><code>.show()</code></a> and <a href="/toggle/"><code>.toggle()</code></a> methods, the <code>to</code> argument is used as the starting point and the original size used as the endpoint.</p>
</longdesc>
<arguments>
<argument name="to" type="Object">
<desc>Height and width to resize to.</desc>
Expand Down
1 change: 1 addition & 0 deletions entries/transfer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<p>Very useful when trying to visualize interaction between two elements.</p>
<p>The transfer element itself has the class <code>ui-effects-transfer</code>, and needs to be styled by you, for example by adding a background or border.</p>
</longdesc>
<added>1.12</added>
<signature>
<argument name="options" type="Object">
<property name="to" type="Selector">
Expand Down