meohmy
meohmy

Reputation: 141

jquery animation to go outside of a div (mask)

I am trying to create an animation using jquery by where the text shoots off above or below and the element is then hidden once outside the div

for an example please see here and hover on the 67% section http://swe.se/

anyone any idea where i can find a tutorial on this? I can create the animation, just not display none outside the div

Upvotes: 0

Views: 1183

Answers (2)

Carol Skelly
Carol Skelly

Reputation: 362410

There is a good example of using "outside" events here:

http://benalman.com/projects/jquery-outside-events-plugin/

Upvotes: 0

Alex Peattie
Alex Peattie

Reputation: 27647

Set overflow to hidden in your CSS:

#mydiv {
  overflow: hidden;
}

Upvotes: 1

Related Questions