Skip to content

Commit

Permalink
Make sure any animating character disappear when outside the boundari…
Browse files Browse the repository at this point in the history
…es of target element
  • Loading branch information
krisk committed Aug 19, 2011
1 parent 3d6abcb commit a96cade
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions textualizer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
Textualizer v2.1.0
Textualizer v2.3.0
Dual licensed under the MIT or GPL Version 2 licenses.
Expand Down Expand Up @@ -189,7 +189,11 @@
.css({ 'position': 'relative', 'visibility': 'hidden' })
.appendTo(clone);

// Contains transitioning text
// Make sure any animating character disappear when outside the boundaries of
// the element
element.css('overflow', 'hidden');

// Contains transitioning text
this.container = $('<div />')
.css('position', 'relative')
.appendTo(element);
Expand Down

0 comments on commit a96cade

Please sign in to comment.