Tuesday 15 September 2015

css - What's up with my transition not working? -


While creating this button, I want it to be a gradient transition when it is active, but it seems that this work I do not know why Google does not block Chrome properties, but they do nothing.

This is what looks like a button:

 . Button {Color: #FFF! Important; Font-size: -63px; Font-Family: "Central Sense-Bold", "Helvetia New", Helvetica, Ariel; Line-height: 265%; Text-decoration: None; Background color: # 167de4; Padding: 0 20px; Display: inline-block; -Vibit-boundary-radius: 3px; -max-boundary-radius: 3px; -mms-boundary-radius: 3px; -o-radius-radius: 3px; Boundary-radius: 3px; -Webbit-background-clip: padding; -move-background-clip: padding; Limit: 1px solid # 1d4ea4; -Moz-box-shadow: 0 1px 1px rgba (0,0,0,0.23), inset 0 1px 0 rgba (255,255,255,0.1.19); Background image: -Winkit-gradient (linear, 50% 100%, 50% 0%, color-stop (0%, # 3669 FA), color-stop (100%, # 4f95f4)); Background image: -webkit-linear-shield (bottom, # 3669ef 0%, # 4f95f4 100%); Background image: -Mo-linear-gradient (bottom, # 3669ef 0%, # 4f95f4, 100%); Background image: -o-linear-gradient (bottom, # 3669ef 0%, # 4f95f4 100%); Background image: Linear-gradient (bottom, # 3669ef 0%, # 4f95f4 100%); Text-shadow: 0 1 px 2 px rgba (0,0,0,0.//.75); White-space: Abrop; Text-overflow: oval; Hidden flurry; Vertical-row: middle; }   

And this is the transition, looks like:

  One-webkit-infection: all 0.05s ease-in-out; -Moz-transition: all 0.05 seconds less-in-out; -O-Infection: All 0.05s ease-in-out; Transition: all 0.05s ease-in-out; }   

The HTML looks like this:

  & lt; One square = "button" href = "#" style = "opacity: 1;" & Gt; Create an account & lt; / A & gt;   

Thanks for your help :)

You have to add . Button: Active

Demo

 . Button: Active {background: red; }    

No comments:

Post a Comment