Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 在媒体查询断点之间设置动画_Jquery_Media Queries - Fatal编程技术网

Jquery 在媒体查询断点之间设置动画

Jquery 在媒体查询断点之间设置动画,jquery,media-queries,Jquery,Media Queries,在css媒体查询之间设置动画的最佳方式是什么 是CSS3转换还是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; } } 我会说使用转换: h1 { -moz-transition : font-si

在css媒体查询之间设置动画的最佳方式是什么

是CSS3转换还是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;
}
}

我会说使用转换:

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;
    }
}

我会说使用转换:

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;
    }
}