GuilhermeSouzaRumpe 0 Denunciar post Postado Dezembro 7, 2014 eu coloca a transition pra mudar em hover e a div ir para 200px ao passar o mouse, mas coloquei com transition-timing-function: ease; para dar uma animação atraente mas ela simplesmente aparece no outro lado sem efeito e ainda tem um bug de aparecer e desaparecer por alguns segundos ate parar! HTML: <Html> <Head> <title> </title> </Head> <Link href="css.css" Rel="Stylesheet" Type="text/css"> <Body> <div id="live"></div> </Body> </Html> CSS: Body{ padding: 50px; } #live{ width: 100px; height: 100px; background-color: yellow; color: black; padding: 30px; Transition-Property: all; Transition-duraction:5s; transition-timing-function: ease; } #live:hover{ margin-left: 400px; } Desde já, valeu!! ;) Compartilhar este post Link para o post Compartilhar em outros sites
Electronic 124 Denunciar post Postado Dezembro 7, 2014 voce só escreveu errado é transition-duration:5s; e nao transition-duraction:5s; sem o C Compartilhar este post Link para o post Compartilhar em outros sites
wilnet 92 Denunciar post Postado Dezembro 7, 2014 Olá Guilherme, blza! Troque seu CSS por esse, e veja se funciona: CSS Body{ padding: 50px; } #live{ width: 100px; height: 100px; background: yellow; padding: 30px; transition: width 2s; transition-timing-function: ease; } #live:hover{ width: 400px; } Espero ter ajudado. vlw Compartilhar este post Link para o post Compartilhar em outros sites
wesleyguirra 0 Denunciar post Postado Dezembro 8, 2014 tenta sempre usar a propriedade transition em vez de "trasition-duration, transition-property".no seu caso ficaria assim: #live { width: 100px; transition: all 5s ease; } #live:hover { width: 200px; } Compartilhar este post Link para o post Compartilhar em outros sites