Using jQuery animations on custom HTML tag

55 views
Skip to first unread message

Dentrist

unread,
Mar 2, 2015, 5:48:11 PM3/2/15
to polym...@googlegroups.com
Hi, after experimenting with polymer I decided to implement custom elements & change simple structures to polymer templates/elements.

The problem appeared when I tried to use .slideDown('fast') .slideUp('fast') on custom polymer tag called "scroll-top". Although the jQuery does work in displaying & hidding the custom tag and on scrolling animation for the body tag, it doesn't work when using jQuery animations.

In this example, after scrolling down on the page, you can see a "polymer" tag and a "normal/regular" tag applied near each other. In this case the regular one has a "sliding" effect before disappearing but the polymer tag doesn't it just disappears without animation.

How can I implement jQuery with polymer elements ?

Please help ! Thnaks.

sfmi...@gmail.com

unread,
Mar 3, 2015, 9:14:14 AM3/3/15
to polym...@googlegroups.com, sfmi...@gmail.com
Never mind, I removed the animation, now just displaying and hiding the element. I added the jQuery to the polymer element html, using:
As a method to implement jQuery with polymer elements. Till jQuery updates its library to be used with polymer, this is how I will implement jQuery scripts.
Reply all
Reply to author
Forward
0 new messages