图片360度旋转

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>图片循环旋转</title>
<style>
*{margin: 0; padding: 0;}
@-webkit-keyframes rotation{
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
.Rotation{
-webkit-transform: rotate(360deg);
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
.img{border-radius: 250px;}
</style>
</head>
<body>
<img class="Rotation img" src="loading_two.png" width="500" height="500"/>
</body>
</html>

原文地址:https://www.cnblogs.com/beimingbingpo/p/9525092.html

时间: 2024-08-29 03:51:18

图片360度旋转的相关文章

Html5添加产品图片360度旋转插件教程

一.使用方法 <link href="/css/tikslus360.css" rel="stylesheet"> <script src="/js/jquery.min.js"></script> <script src="/js/tikslus360.min.js"></script> 二.Html结构 <div id="view360"

原生图片360度旋转

1 <!doctype html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title></title> 6 <style> 7 #left{ position:absolute; left:0; top:0; width:50%; hei

360度旋转图片小特效

现在,在这个网络发达的时代,一些电子商务公司,需要将自己线上的产品给买家或用户看,为了能让用户了解的更全面,那么把一个物件的产品要展示到方方面面,就要运用到360度旋转图片特效,因为上次有朋友叫我帮她弄这样一个效果,然后结合网上的资源,就小试牛刀了,觉得还挺好玩的,效果还是可以看的吧. 首先呢,需要在HTML文档中引入3deye.min.js文件和jq.js,这些可以在网上下载到免费的,另外,要展示到方方面面的,就要做这件物品的各个角度的图片,我这里是36张图片,每10度一张图片,好了,我就贴出

html5人物图片360度立体旋转

体验效果:http://hovertree.com/texiao/html5/10.htm 下载:http://hovertree.com/hvtart/bjae/t16oddyt.htm 代码如下: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Full 360 degree View - HoverTree</title> <sty

Swift--使图片360&#176; 周期旋转

UIImageView+Extension.swift import UIKit extension UIImageView { // 360度旋转图片 func rotate360Degree() { let rotationAnimation = CABasicAnimation(keyPath: "transform.rotation.z") // 让其在z轴旋转 rotationAnimation.toValue = NSNumber(double: M_PI * 2.0) /

CSS3鼠标悬停图片360度旋转效果

一个用HTML5/css3写成的图片旋转特效,鼠标放上后图片就开始不停的旋转,对CSS3动画效果感兴趣的,更不可错过哦,用CSS3实现动画效果很不错的范例. <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title>CSS3鼠标悬停图片360度旋转效果丨电表控制器|www.sjzkeda.com</title>

js鼠标拖动图片360度平面旋转

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Typ

HTML实现图片360度循环旋转

<style> .header{ -webkit-animation:rotateImg 5s linear infinite;<!--修改旋转周期--> border: 1px solid #ccc; vertical-align: middle; } @keyframes rotateImg { 0% {transform : rotate(0deg);} 100% {transform : rotate(360deg);} } @-webkit-keyframes rotat

iOS开发动画(Animation)图片360度不停旋转

1 { 2 CGFloat angle; 3 } 4 5 - (void)viewDidLoad { 6 [super viewDidLoad]; 7 angle = 0; 8 [self startAnimation]; 9 } 10 11 //方法1 12 -(void) startAnimation 13 { 14 [UIView beginAnimations:nil context:nil]; 15 [UIView setAnimationDuration:0.01]; 16 [UIV