- This topic is empty.
-
AuthorPosts
-
October 30, 2014 at 3:44 pm #187372xellos81Participant
Hello,
I’m here, on this test-project, trying to learn new CSS tecniques (thanks css tricks!), like CSS animation and something similar.I’m trying to make the logo zoom-in + fade-in from the center
but instead it zoom-in from the up-left cornercan somebody tell me what am I doing wrong?
This is my CodePen
thank you in advance
October 30, 2014 at 4:03 pm #187374shaneismeParticipantBe sure to run your code through a validator, you’ve got at least one typo on the css property
text-align
(you have it set to “aling” under.big-logo
)October 30, 2014 at 4:25 pm #187377xellos81Participantthank you! …but that did not solved my problem :(
(codepen updated)
October 31, 2014 at 2:45 am #187401Paulie_DMemberIt would be more helpful if you gave us a reduced case in Codepen removing all of the cruft *not** related to this issue.
We (certainly I) hate wading through reams of unrelated code just to find one tiny speck of stuff.
Quite often doing this will enable to to concentrate on the specific issue and possibly find the solution on your own.
October 31, 2014 at 3:41 am #187403xellos81Participantyou’re totally right, but the thing is, that I’m afraid that there is something wrong between this part interacting with other aspects of the page, that’s why I kept it as it is
October 31, 2014 at 3:59 am #187404xellos81ParticipantYay!
I’ve found the solution myselfI just had to add a new and centerd “margin-left” to the animation
@-webkit-keyframes biglogo_in {
0% { opacity: 0; }50% { opacity: 0;
margin-left: -19vw;
width: 38vw;
margin-top: -3vw;}100% { opacity: 1;
margin-left: -22vw;
width: 44vw; }
}this is the new and working CodePen Link
October 31, 2014 at 10:09 am #187437shaneismeParticipantyou’re totally right, but the thing is, that I’m afraid that there is something wrong between this part interacting with other aspects of the page, that’s why I kept it as it is
That’s exactly why you do it – to find out if that’s the case or not.
It looks good to me at certain viewport sizes, but at especially small ones it gets messed up pretty quickly.
Also, just in case you didn’t know: http://caniuse.com/#search=viewport – decent support for viewport units but it’s not perfect by any stretch.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.