Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure any animating character disappear when outside the boundari…

…es of target element
  • Loading branch information...
commit a96cade9c97365beff87a793b9ae8a368b661375 1 parent 3d6abcb
Kirollos Risk krisk authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 textualizer.js
8 textualizer.js
View
@@ -1,5 +1,5 @@
/**
- Textualizer v2.1.0
+ Textualizer v2.3.0
Dual licensed under the MIT or GPL Version 2 licenses.
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.