Tomarz
Tomarz

Reputation: 1097

Different animation an css for element on pageload

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

Answers (1)

mas-designs
mas-designs

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:

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

Related Questions