Qual è il modo migliore per animare le query multimediali su CSS?
Sarebbe CSS3 Transitions o jquery?
CSS
@media handheld, only screen and (max-width: 1024px) {
h1 {
font-size: 30px;
}
}
@media handheld, only screen and (max-width: 768px) {
h1 {
font-size: 10px;
}
}
risposte:
3 per risposta № 1Direi usando le transizioni:
h1 {
-moz-transition : font-size 2s;
-webkit-transition: font-size 2s;
-o-transition : font-size 2s;
transition : font-size 2s;
}
@media handheld, only screen and (max-width: 1024px) {
h1 {
font-size: 30px;
}
}
@media handheld, only screen and (max-width: 768px) {
h1 {
font-size: 10px;
}
}