Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2012, 09:29 PM   PM User | #1
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
Question css / css3 animation issue

http://aaron-armstrong.com/new-a/#

Hey Coding Forums,
So i got a question for you.

I am creating a new portfolio ( not sure if i'll use it or not yet. )
And i have all the content on a single page.
when you click on one of the navigation buttons ( top, left, bottom, or right. )
That content slides down, and if you click home, it slides back away and shows the "home" page.

But....
When you click on the right or bottom, it doesnt animate, it just snaps into place. But still animates when its going back to the home page.

I can only assume this has to do with how i am position these elements.
I have their width and height set to 100%, and then i have a margin to hide them
Code:
Top = margin-top:-100%;
Left = margin-left:-100%;
Right = margin-left = 100%;
Bottom = margin-top: 100%;
How else would i position these elements ??

I posted the link at the top, let me know if you need me to include the CSS or if you can just see it from inspect element, as right now my CSS is minified.

Thanks in advance for all who help.
aaronhockey_09 is offline   Reply With Quote
Old 11-05-2012, 07:47 PM   PM User | #2
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
nooo helps

aaronhockey_09 is offline   Reply With Quote
Old 11-06-2012, 07:36 AM   PM User | #3
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
Code:
Top = margin-top:-100%;
Left = margin-left:-100%;
Right = margin-left = 100%;
Bottom = margin-top: 100%;
Is the above how you've coded it? You can't declare values like that. don't use equal signs to assign values, only colons. and I don't think you can assign a property to a property.
backa is offline   Reply With Quote
Reply

Bookmarks

Tags
animation, css, css3, margins, transition

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:48 PM.


Advertisement
Log in to turn off these ads.