Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test text updated!

  • Loading branch information...
commit 61c75e2ca99b907e80e7f6ec9b70c8b57c0af3e5 1 parent 7f0daf3
Jesper Lindstroem Nielsen authored
Showing with 7 additions and 6 deletions.
  1. +2 −2 tests/visual/effects.all.html
  2. +5 −4 ui/jquery.effects.split.js
View
4 tests/visual/effects.all.html
@@ -196,13 +196,13 @@
<li>
<div class="effect" id="build">
- <p>Piece this box</p>
+ <p>Build</p>
</div>
</li>
<li>
<div class="effect" id="pinwheel">
- <p>Piece this box</p>
+ <p>Pinwheel</p>
</div>
</li>
View
9 ui/jquery.effects.split.js
@@ -26,6 +26,7 @@
//Helper function to control the split on each animation
function startSplitAnim( o, animation, next ){
+ // TODO make interval a part of the animations because of the difference
var el = $( this ),
interval = o.interval || o.duration / ( o.rows + o.columns * 2 ),
duration = o.duration - ( o.rows + o.columns ) * interval,
@@ -211,6 +212,8 @@
maxLeft = documentCoords.width - width,
properties, top, left;
+ //TODO Porperties and offset can be collected in one object!
+
offset = {
top : offset.top - parentCoords.top,
left : offset.left - parentCoords.left
@@ -315,8 +318,6 @@
height = el.outerHeight(),
rowOdd = !( row % 2 ),
colOdd = !( column % 2 ),
- distanceX = opt.distance * parentCoords.width,
- distanceY = opt.distance * parentCoords.height,
properties, top, left;
startProperties = {
@@ -551,8 +552,8 @@ $.effects.splitUnShear = function( o ) {
};
/*******************************************************************************
- * Don't use fade and direction TODO: make the fading comming from the
- * options.direction.
+ * Don't use fade and direction
+ * TODO: make the fading comming from the options.direction.
******************************************************************************/
$.effects.blockSplitFadeOut = function( o, show ) {
var docHeight = $( document ).height(), docWidth = $( document ).width();
Please sign in to comment.
Something went wrong with that request. Please try again.