My basic working sample code:
div {
width: 100px;
height: 100px;
background: red;
-webkit-transition: all 0.25s ease 0s;
-moz-transition: all 0.25s ease 0s;
transition: all 0.25s ease 0s;
}
If I remove the 0
before transition duration and s
after transition delay then it's not working:
div {
width: 100px;
height: 100px;
background: red;
-webkit-transition: all .25s ease 0;
-moz-transition: all .25s ease 0;
transition: all .25s ease 0;
}
I ask this question because my transition is working with the latter code but suddenly Chrome gave me the error "Unknown property name" and I need to change it to the former version to make my transition working again. How can I resolve this problem since I've a lot of code with the second format.