Reputation: 1097
I'm wondering if it's possible to do and I'm not sure if I can explain my problem right but here goes:
Depending on which page link I click, the element in page that loads will be animated differently. Example:
If I click a link on page A -> page C loads and the element slides from the top
If I click a link on page B -> page C loads and the element slides from the bottom
Hope that's clear enough.
Upvotes: 0
Views: 129
Reputation: 7536
You could implement different sripts on site a or b. Or you could check in your javascript on which page you currently are.
Using animations is not a big deal in jquery:
http://api.jquery.com/slideDown/
documentation for slideDown effect.
http://api.jquery.com/slideUp/
documentation for slideUp effect.
both are simple to use and will give you the pretty effect to your page which is easy to do and pretty looks good.
Upvotes: 1