-
Notifications
You must be signed in to change notification settings - Fork 75
Effects: Mark transfer-effect deprecated, document .transfer() #263
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
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0"?> | ||
<entry name="transfer" type="method" return="jQuery"> | ||
<title>.transfer()</title> | ||
<desc>Transfers the outline of an element to another element</desc> | ||
<longdesc> | ||
<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> | ||
<signature> | ||
<argument name="options" type="Object"> | ||
<property name="to" type="Selector"> | ||
<desc>The target of the transfer effect.</desc> | ||
</property> | ||
<property name="className" type="String" default="null"> | ||
<desc>A class to add to the transfer element, in addition to <code>ui-effects-transfer</code>.</desc> | ||
</property> | ||
<property name="duration" default="400"> | ||
<desc>A string or number determining how long the animation will run. The strings <code>"fast"</code> and <code>"slow"</code> can be supplied to indicate durations of 200 and 600 milliseconds, respectively. The number type indicates the duration in milliseconds.</desc> | ||
<type name="Number"/> | ||
<type name="String"/> | ||
</property> | ||
<property name="easing" type="String" default="swing"> | ||
<desc>A string indicating which <a href="/easings/">easing</a> function to use for the transition.</desc> | ||
</property> | ||
</argument> | ||
<xi:include href="../includes/animation-argument-complete.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/> | ||
</signature> | ||
<example> | ||
<height>150</height> | ||
<desc>Clicking on the green element transfers to the other.</desc> | ||
<css><![CDATA[ | ||
.green { | ||
width: 100px; | ||
height: 80px; | ||
background: green; | ||
border: 1px solid black; | ||
} | ||
.red { | ||
margin-top: 10px; | ||
width: 50px; | ||
height: 30px; | ||
background: red; | ||
border: 1px solid black; | ||
} | ||
.ui-effects-transfer { | ||
border: 1px dotted black; | ||
} | ||
]]></css> | ||
<code><![CDATA[ | ||
$( "div" ).click(function() { | ||
var i = 1 - $( "div" ).index( this ); | ||
$( this ).transfer( { | ||
to: $( "div" ).eq( i ), | ||
duration: 1000 | ||
} ); | ||
}); | ||
]]></code> | ||
<html><![CDATA[ | ||
<div class="green"></div> | ||
<div class="red"></div> | ||
]]></html> | ||
</example> | ||
<category slug="effects"/> | ||
<category slug="effects-core"/> | ||
</entry> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the content from https://github.com/jquery/api.jqueryui.com/blob/master/includes/animation-argument-easing.xml.