treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Sliding Panel on page load.

  • Hey there, I'm trying to find a way to have a panel or banner slide into view from the right to the left. I also would like this to occur on page load, or have a small delay after pageload. I have very basic js/jquery knowledge, and have tried using a few different solutions that I can't get working (mostly likely because I didn't use them correctly). Ive tried slideToggle but I can only find vertical versions, not horizontal. I did find a bit of code that used animate but couldn't figure it out.

    Hoping someone has some easy jquery to through my way to solve this.

    Thanks for reading!

    -Aaron-
  • It would be a lot easier to help if you had some code for us to look at so we can see exactly what you are trying to do.
  • Ya I understand that it's easier when you can see code. I was just looking for any general suggestions that would help me create a slide animation for an element. And to have that animation occur on page load. The reason I didn't post any code to the project is because its for my internship (still in school) at the place I work at. Its a small design/print shop and the owner is paranoid about people "stealing" from his "company" on the internet. I also kinda hate the website :p so I was slightly embarrassed to show this particular project. LOL

    I did come up with a solution though. I used CSS Transition in combination with a short document.ready function. It worked out well enough.

    I'll take a look at the code you posted amoss. Looks like a another good solution and an alternative to CSS transitions.

    Thanks for the input!

    Aaron