当前位置: 首页 > news >正文

施工企业工程施工科目杭州优化外包哪里好

施工企业工程施工科目,杭州优化外包哪里好,东莞网络,哪个网站做照片书最好看CSS画圆以及CSS实现动态圆 1. 先看基础(静态圆)1.1 效果如下:1.2 代码如下: 2. 动态圆2.1 一个动态圆2.1.1 让圆渐变2.1.2 圆渐变8秒后消失2.1.3 转动的圆(单个圆) 2.2 多个动态圆 1. 先看基础(…

CSS画圆以及CSS实现动态圆

  • 1. 先看基础(静态圆)
    • 1.1 效果如下:
    • 1.2 代码如下:
  • 2. 动态圆
    • 2.1 一个动态圆
      • 2.1.1 让圆渐变
      • 2.1.2 圆渐变8秒后消失
      • 2.1.3 转动的圆(单个圆)
    • 2.2 多个动态圆

1. 先看基础(静态圆)

1.1 效果如下:

  • 如下:
    在这里插入图片描述

1.2 代码如下:

  • 如下:

    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* 正方形 */.xmbook_red_point_1 {width: 50px;height: 50px;display: inline-block;background-color: red;}/* 圆角正方形 */.xmbook_red_point_2 {width: 50px;height: 50px;display: inline-block;background-color: red;border-radius: 20%;}/* 实心圆 */.xmbook_red_point_3 {width: 50px;height: 50px;/* position: relative; *//* bottom: 2px; *//* left: 4px; */display: inline-block;/* background: url(/zh_CN/htmledition/images/icon_xmbook_red_point513f4c.png); */background-color: red;border-radius: 50%;}/* 空心圆 */.xmbook_red_point_4 {width: 50px;height: 50px;display: inline-block;/* background-color: red; */border-radius: 50%;border: 2px solid;border-color: red;}/* 圈中带字 */.xmbook_red_point_5 {width: 50px;height: 50px;display: inline-block;/* background-color: red; */border-radius: 50%;border: 2px solid;border-color: red;/* 设置圈中字体大小等 */font: 14px Arial, sans-serif;/* 下面是调整圈中字体位置的 */display: flex;justify-content: center;align-items: center;/* text-align: center; */}</style>
    </head>
    <body><div class="xmbook_red_point_1"></div><div class="xmbook_red_point_2"></div><div><i class="xmbook_red_point_3"></i></div><div><i class="xmbook_red_point_4"></i></div><!-- 圈中带字 --><div><i class="xmbook_red_point_5">10</i></div><div class="xmbook_red_point_5">12</div></body>
    </html>
    

2. 动态圆

2.1 一个动态圆

2.1.1 让圆渐变

  • 效果如下:
    在这里插入图片描述

  • 实现代码如下:

    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* 空心圆 */.xmbook_red_point_4 {width: 100px;height: 100px;/* display: inline-block; *//* background-color: red; */border-radius: 50%;/* border: 2px solid; *//* border-color: red; */position: absolute;top: 150px;left: 150px;/* identifier 3s 控制动的频率 linear infinite 让动画不断渐变不要停transform-origin 控制运动轨迹*/animation: identifier 3s infinite linear;transform-origin: 150px 150px ;}@keyframes identifier{   /*用“0%-100%” 或者 “from-to” 均可以*/  from{transform: rotate(360deg) scale(1);border: 10px solid rgb(143, 182, 222);}to{transform: rotate(360deg) scale(1);border: 10px solid rgb(2, 36, 70);}}</style>
    </head>
    <body><div class="xmbook_red_point_4"></div></body>
    </html>
    

2.1.2 圆渐变8秒后消失

  • 代码实现如下:

    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* 空心圆 */.xmbook_red_point_4 {width: 100px;height: 100px;/* background-color: red; */border-radius: 50%;/* border-color: red; */position: absolute;top: 150px;left: 150px;/* identifier 3s 控制动的频率 linear infinite 让动画不断渐变不要停transform-origin 控制运动轨迹*/animation: identifier 8s infinite linear;/* transform-origin: 150px 150px ; */}@keyframes identifier {100% {/* transform: rotate(360deg) scale(1); */border: 10px solid rgb(6, 68, 130);}}</style>
    </head>
    <body><div class="xmbook_red_point_4"></div></body>
    </html>
    

2.1.3 转动的圆(单个圆)

  • 实现效果如下:

css实现圆转动(单个圆)

  • 实现代码如下:

    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* 空心圆 */.xmbook_red_point_4 {width: 100px;height: 100px;background-color: red;border-radius: 50%;/* border-color: rgb(0, 98, 255); */position: absolute;top: 150px;left: 150px;/* identifier 3s 控制动的频率 linear infinite 让动画不断渐变不要停transform-origin 控制运动轨迹*/animation: identifier 5s infinite linear;transform-origin: 150px 150px ;}@keyframes identifier {100% {transform: rotate(360deg) scale(1);/* border: 10px solid rgb(6, 68, 130); */}}</style>
    </head>
    <body><div class="xmbook_red_point_4"></div></body>
    </html>
    

2.2 多个动态圆

  • 实现效果如下:

css实现多个运动的圆

  • 实现代码如下:
    <!DOCTYPE html>
    <html lang="en">
    <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* 空心圆 */.xmbook_red_point_4 {width: 100px;height: 100px;background-color: rgb(9, 163, 30);border-radius: 50%;/* border-color: rgb(0, 98, 255); */position: absolute;top: 150px;left: 150px;/* identifier 3s 控制动的频率 linear infinite 让动画不断渐变不要停transform-origin 控制运动轨迹*/animation: identifier 5s infinite linear;transform-origin: 100px 100px ;}/* 如果让三圆重叠,把下面的 120px 调成 100px 或更小即可 */.xmbook_red_point_4:nth-child(1) {animation: identifier 9s infinite linear;transform-origin: 120px 120px;}.xmbook_red_point_4:nth-child(2) {animation: identifier 9s infinite -3s linear;transform-origin: 120px 120px;}.xmbook_red_point_4:nth-child(3) {animation: identifier 9s infinite -6s linear;transform-origin: 120px 120px;}@keyframes identifier {0% {transform: rotate(0deg) scale(1);border: 10px solid rgb(4, 212, 195);}30% {transform: rotate(120deg) scale(1);border: 10px solid rgb(33, 4, 147);}100% {transform: rotate(360deg) scale(1);border: 10px solid rgb(132, 7, 9);}}</style>
    </head>
    <body><div class="xmbook_red_point_4"></div><div class="xmbook_red_point_4"></div><div class="xmbook_red_point_4"></div>
    </body>
    </html>
    
http://www.dinnco.com/news/59098.html

相关文章:

  • 网站直播用php怎么做的广州推动优化防控措施落地
  • 做网站-信科网络2345网址大全浏览器
  • 系统模板html潍坊seo教程
  • 商会网站建设开发成都seo经理
  • 做视频网站需要什么空间吗系统推广公司
  • 学历提升销售好做吗seo优化前景
  • 做网站应该学什么西安今日头条新闻
  • ps海报素材网南平seo
  • 专业的深圳网站建设公司网站营销
  • 锦州网站制作宣传推广
  • 淮北做网站的公司网站seo优化多少钱
  • 杰奇网站地图怎么做百度客户服务中心
  • 织梦网站建设后优化步骤2023年中国进入一级战备状态了吗
  • 西安建设网站的公司简介如何制作一个网页链接
  • 广东东信润建设有限公司网站最近一个月的热点事件
  • 成都网站建设优化公司t和p在一起怎么做网站
  • 承德建站公司百度账号管理中心
  • 临海做 网站网站创建公司
  • 政府网站建设费用网站优化软件
  • 大学代作作业的网站北京整站线上推广优化
  • wordpress怎么做站内站包头seo
  • 琼海做球网站百度指数是什么意思
  • 如何做网站挂qq网络营销公司简介
  • 河北提供网站建设公司电话移动优化课主讲:夫唯老师
  • element-ui网站开发谷歌外链
  • 网站建设案例图片优化服务
  • 宜昌网站建设市场运营是做什么的
  • 我公司让别人做网站了怎么办快速排名优化公司
  • 成功卡耐基网站建设昆明优化网站公司
  • 网站建设方案说明书广告营销案例分析