亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线
基礎(chǔ)教程
菜鳥教程(cainiaoplus.com)
HTML/CSS
HTML基礎(chǔ)教程
HTML5基礎(chǔ)教程
HTML參考手冊(cè)
SVG 教程
CSS 教程
CSS 參考手冊(cè)
CSS3教程
Bootstrap3 教程
Bootstrap4 教程
Font Awesome圖標(biāo)
JavaScript
JavaScript 教程
JavaScript 參考手冊(cè)
jQuery 教程
AJAX 教程
JSON 教程
AngularJS 教程
ReactJS 教程
NodeJS 教程
服務(wù)端開發(fā)
C++ 教程
Golang 教程
C 語言教程
PHP 教程
C# 教程
LINQ 教程
Lua 教程
Ruby 教程
Rust 教程
Linux 教程
R 語言教程
Docker 教程
Scala 教程
MatLab 教程
Erlang 教程
Java教程
Java 教程
SpringBoot 教程
JDBC 教程
JSP 教程
Servlet 教程
Maven 教程
Spring 教程
Python教程
Python 教程
Pandas教程
Numpy教程
Django 教程
Matplotlib 教程
Flask 教程
移動(dòng)端
Swift 教程
Kotlin 教程
數(shù)據(jù)庫
SQL 教程
MongoDB 教程
SQLite 教程
PostgreSQL 教程
MySql 教程
Redis 教程
Elasticsearch 教程
經(jīng)驗(yàn)筆記
在線工具
首頁
CSS 參考手冊(cè)
CSS 動(dòng)畫屬性
CSS3 transform 屬性動(dòng)畫示例
源代碼:
點(diǎn)擊運(yùn)行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Example of CSS3 transform Property Animation- 基礎(chǔ)教程(cainiaoplus.com)</title> <style> .container{ margin: 25px; } .container img{ -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; /* Standard syntax */ } /* Chrome, Safari, Opera */ @-webkit-keyframes test { 50% {-webkit-transform: rotate(360deg);} } /* Standard syntax */ @keyframes test { 50% {transform: rotate(360deg);} } /* Example of 3D Transform */ .container-3d{ margin: 25px; width: 125px; height: 125px; perspective: 300px; border: 4px solid #a2b058; background: #f0f5d8; } .container-3d img{ /* Chrome, Safari, Opera */ -webkit-animation: test3d 4s infinite; -webkit-transform-origin: right center 0; /* Standard syntax */ animation: test3d 4s infinite; transform-origin: right center 0; } /* Chrome, Safari, Opera */ @-webkit-keyframes test3d { 50% { -webkit-transform: rotate3d(0, 1, 0, 180deg); /* Chrome, Safari, Opera */ } } /* Standard syntax */ @keyframes test3d { 50% { transform: rotate3d(0, 1, 0, 180deg); /* Standard syntax */ } } </style> </head> <body> <p> <strong>警告:</strong>:CSS動(dòng)畫在Internet Explorer 9和更早版本中不起作用。</p> <p> <strong>注意</strong>:“星魚”圖像從其原始位置沿順時(shí)針方向旋轉(zhuǎn)360度,然后又無限次地回到原始位置。</p> <div class="container"> <img src="/run/images/star-fish.png" alt="Star Fish"> </div> <hr> <p><strong>Note:</strong> “俱樂部卡片”圖像在3D空間中沿Y軸(即,右邊緣)旋轉(zhuǎn)180度,并再次回到原始位置,直到無窮多次。<p> <div class="container-3d"> <img src="/run/images/club.jpg" alt="Club Card"> </div> </body> </html>
運(yùn)行結(jié)果
Copyright ?2023
菜鳥教程
cainiaoplus.com