Je moet die CSS-code wel ergens aan koppelen, bijvoorbeeld door deze "in" een element te zetten.
div {
-webkit-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
-moz-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
-o-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */
-webkit-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
-moz-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
-o-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */
}
Link gekopieerd
Heb je anders geen JSbin voor je code, zoals Eschwin je code had uitgetest?
Dat werkt wat makkelijker.
Link gekopieerd
div#portfolio {
-webkit-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
-moz-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
-o-transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000);
transition: all 500ms cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */
-webkit-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
-moz-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
-o-transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000);
transition-timing-function: cubic-bezier(0.420, 0.000, 1.000, 1.000); /* ease-in */
}
Is dit goed?
Link gekopieerd