css线加点的进度,纯CSS实现的交互式进度条(点击带进度填充动画)

CSS

语言:

CSSSCSS

确定

.bar {

display: flex;

flex-direction: row-reverse;

margin: auto auto 0;

width: 300px;

max-width: calc(100% - 30px);

}

.bar-input {

opacity: 0;

pointer-events: none;

position: absolute;

top: -9999px;

left: -9999px;

}

.bar-input:checked ~ .bar-view:nth-child(10):after {

transition-delay: -0.05s;

}

.bar-input:checked ~ .bar-view:nth-child(10) .bar-button:before {

transition-delay: 0.01s;

}

.bar-input:checked ~ .bar-view:nth-child(8):after {

transition-delay: 0.05s;

}

.bar-input:checked ~ .bar-view:nth-child(8) .bar-button:before {

transition-delay: 0.11s;

}

.bar-input:checked ~ .bar-view:nth-child(6):after {

transition-delay: 0.15s;

}

.bar-input:checked ~ .bar-view:nth-child(6) .bar-button:before {

transition-delay: 0.21s;

}

.bar-input:checked ~ .bar-view:nth-child(4):after {

transition-delay: 0.25s;

}

.bar-input:checked ~ .bar-view:nth-child(4) .bar-button:before {

transition-delay: 0.31s;

}

.bar-input:checked ~ .bar-view:nth-child(2):after {

transition-delay: 0.35s;

}

.bar-input:checked ~ .bar-view:nth-child(2) .bar-button:before {

transition-delay: 0.41s;

}

.bar-input:checked ~ .bar-view:after {

-webkit-transform: scaleX(1);

transform: scaleX(1);

}

.bar-input:checked ~ .bar-view .bar-button:before {

-webkit-transform: none;

transform: none;

opacity: 1;

}

.bar-input:checked + .bar-view .bar-button:after {

opacity: 1;

-webkit-animation: bouncing 0.6s cubic-bezier(0, 0, 0.74, 1.04) infinite;

animation: bouncing 0.6s cubic-bezier(0, 0, 0.74, 1.04) infinite;

}

.bar-view {

display: flex;

flex-grow: 1;

position: relative;

}

.bar-view:after {

height: 2px;

top: calc(50% - 1px);

transition: -webkit-transform 0.06s cubic-bezier(0, 0.72, 0.58, 1);

transition: transform 0.06s cubic-bezier(0, 0.72, 0.58, 1);

transition: transform 0.06s cubic-bezier(0, 0.72, 0.58, 1), -webkit-transform 0.06s cubic-bezier(0, 0.72, 0.58, 1);

-webkit-transform: scaleX(0);

transform: scaleX(0);

background: #FFB732;

-webkit-transform-origin: left;

transform-origin: left;

z-index: 1;

}

.bar-view:not(:last-child):before,

.bar-view:not(:last-child):after {

content: "";

width: calc(100% - 24px);

position: absolute;

right: calc(50% + 12px);

}

.bar-view:not(:last-child):before {

height: 6px;

top: calc(50% - 3px);

background: #3C6997;

}

.bar-view:not(:last-child):nth-child(2):after {

transition-delay: 0s;

}

.bar-view:not(:last-child):nth-child(2) .bar-button:before {

transition-delay: 0.06s;

}

.bar-view:not(:last-child):nth-child(4):after {

transition-delay: 0.1s;

}

.bar-view:not(:last-child):nth-child(4) .bar-button:before {

transition-delay: 0.16s;

}

.bar-view:not(:last-child):nth-child(6):after {

transition-delay: 0.2s;

}

.bar-view:not(:last-child):nth-child(6) .bar-button:before {

transition-delay: 0.26s;

}

.bar-view:not(:last-child):nth-child(8):after {

transition-delay: 0.3s;

}

.bar-view:not(:last-child):nth-child(8) .bar-button:before {

transition-delay: 0.36s;

}

.bar-view:not(:last-child):nth-child(10):after {

transition-delay: 0.4s;

}

.bar-view:not(:last-child):nth-child(10) .bar-button:before {

transition-delay: 0.46s;

}

.bar-button {

display: block;

width: 30px;

height: 30px;

margin: auto;

border-radius: 50%;

border: 3px solid #3C6997;

position: relative;

cursor: pointer;

box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3), 2px 2px 8px rgba(0, 0, 0, 0.1);

}

.bar-button:hover:after {

-webkit-transform: none;

transform: none;

opacity: 1;

}

.bar-button:before,

.bar-button:after {

content: "";

position: absolute;

pointer-events: none;

}

.bar-button:before {

width: 100%;

height: 100%;

border-radius: 50%;

background: radial-gradient(circle at center, #FFDD4A, #FE9000);

-webkit-transform: scale(0.3);

transform: scale(0.3);

opacity: 0;

transition-property: opacity, -webkit-transform;

transition-property: transform, opacity;

transition-property: transform, opacity, -webkit-transform;

transition-duration: 0.2s;

transition-timing-function: cubic-bezier(0, 0.72, 0.58, 1);

}

.bar-button:after {

border: 8px solid transparent;

border-top-color: #5ADBFF;

bottom: calc(100% + 10px);

left: calc(50% - 8px);

-webkit-transform: translateY(-10px);

transform: translateY(-10px);

opacity: 0;

transition-property: opacity, -webkit-transform;

transition-property: transform, opacity;

transition-property: transform, opacity, -webkit-transform;

transition-duration: 0.2s;

transition-timing-function: cubic-bezier(0, 0, 0, 1.97);

}

.command {

font-family: "Ubuntu Mono", monospace;

letter-spacing: 1px;

margin: 30px auto auto;

-webkit-animation: fade 1s ease infinite;

animation: fade 1s ease infinite;

}

html,

body {

width: 100%;

height: 100%;

display: flex;

flex-direction: column;

background: linear-gradient(to bottom right, rgba(255, 221, 74, 0.1), #fff);

}

* {

box-sizing: border-box;

}

*:before,

*:after {

box-sizing: inherit;

}

@-webkit-keyframes bouncing {

0%, 100% {

-webkit-transform: translateY(0);

transform: translateY(0);

}

50% {

-webkit-transform: translateY(5px);

transform: translateY(5px);

}

}

@keyframes bouncing {

0%, 100% {

-webkit-transform: translateY(0);

transform: translateY(0);

}

50% {

-webkit-transform: translateY(5px);

transform: translateY(5px);

}

}

@-webkit-keyframes fade {

50% {

opacity: 0.3;

}

}

@keyframes fade {

50% {

opacity: 0.3;

}

}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/489297.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

python创建长度为n的数组_在Python中建立N维数组并赋初值

在Python中,由于不像C/Java这样的语言可以方便的用a[i][j]0的方式,建立二维数组并赋初值,所以需要一个相对巧妙的方法。 可以用列表解析的方式,eg: >>> mat[[0 for i in range(5)] for j in range(5)]>>>mat [[…

匹夫细说C#:庖丁解牛迭代器,那些藏在幕后的秘密

匹夫细说C#:庖丁解牛迭代器,那些藏在幕后的秘密c#语言规范阅读目录0x00 前言0x01 你好,迭代器0x02 原来是状态机呀0x03 状态管理0x04 总结回到目录0x00 前言在匹夫的上一篇文章《匹夫细说C#:不是“栈类型”的值类型,从…

贴花纸怎么贴_陶瓷贴花纸DIY怎么做?

A:1 释义 编辑本段词目:陶瓷花纸拼音:to c huā zhǐ英文:ceramic stained paper2 什么是陶瓷花纸? 编辑本段陶瓷花纸也叫做陶瓷粘花纸。陶瓷粘花纸是指在陶瓷(或瓷坯)表面贴上印刷好的陶瓷专用花纸…

法国公布“人机协同”项目第二批研究计划

来源:法国《航宇防务》/图片来自互联网出处:国防科技要闻近日,法国公布了“人机协同”(MMT)项目第二批研究计划。MMT项目由法国武器装备总署(DGA)管理,于2018年3月启动,是…

xp打印服务器win10的系统连接不上,Win10系统访问WinXP系统共享打印机却连接不了的解决方法...

在今天的Win10系统的使用教程中,我们将来学习的是Win10系统访问WinXP系统共享打印机却连接不了的问题。不过,小编得事先说一下,Win10系统是可以直接连接WinXP系统共享打印机的,只是个别用户由于一些原因而出现这个状况&#xff0c…

c++ map初始化同时赋值_Golang入门教程——map篇

点击上方蓝字,和我一起学技术。今天是golang专题的第7篇文章,我们来聊聊golang当中map的用法。map这个数据结构我们经常使用,存储的是key-value的键值对。在C/java当中叫做map,在Python中叫做dict。这些数据结构的名称虽然不尽相同…

ABP文档翻译--值对象

本人是ABP初学者,在看英文文档和tkb至简 的ABP框架理论研究总结(典藏版)时,发现大神tkb至简中少了对Value Objects的翻译,看文档是新的,大神没时间把,小弟给补充上。   介绍 值对象基类 最佳实践 介绍 “用于描述领…

c++ so 反射_c++如何实现反射功能?

问题主 和 vczh 可以看下我这样弄,是否符合要求?定义类的时候稍微傻一点,但是他既不要求pod, 也没有什么侵入式的基类要求。甚至还允许你把成员定义成private的。连C11都不需要。struct test_type0{DEF_FIELD_BEGIN(test_type0)pr…

知识图谱简史:从1950到2019

来源:专知 地址:http://knowledgegraph.today/paper.html 作者 | Claudio Gutierrez 、 Juan F. Sequeda 编译 | Xiaowen 目录: 知识图谱可以被认为是实现计算机科学的早期愿景,即创建能够大规模集成知识和数据的智能系统。“知识…

easyui ajax post,EasyUI框架 使用Ajax提交注册信息的实现代码

EasyUI框架 使用Ajax提交注册信息的实现代码一、服务器代码:ControllerScope("prototype")public class StudentAction extends BaseAction {private static final long serialVersionUID -2612140283476148779L;private Logger logger Logger.getLogge…

PHP文件缓存实现

有些时候,我们不希望使用redis等第三方缓存,使得系统依赖于其他服务。这时候,文件缓存会是一个不错的选择。 我们需要文件缓存实现哪些功能: 功能实现:get、set、has、increment、decrement、delete、flush 能够在较短…

影响计算机算法世界的十位大师(上)

来源:数学职业家1、伟大的智者——Don E.Knuth,中文名:高德纳(1938-)算法和程序设计技术的先驱者。Oh,God!一些国外网站这样评价他。一般说来,不知道此人的程序员是不可原谅的。其经典著作《计算机程序设计艺术》更是被誉为算法中…

echars显示折点数据_数据可视化的基础语法

数据可视化的基础语法可视化主要是以图像来展示数据间的关系,常见的图形种类有折线图,散点图,条形图,直方图,饼图。此外在接下来课程中还会用到箱线图,热力图,蜘蛛图,表示二元变量分布和成对关系的视图。今…

ajax 输入不为空,ajax POST响应为空

尝试通过单击按钮发布数据,但作为响应,PHP脚本中将其显示为空这是html这是jqueryvar action 1;$("input").on("click", sendData);function sendData() {if ( action 1 ) {$("#btn").css("background", "…

cad快捷键文件路径_办公格式转太难不会看这里!CAD、PDF、Word、Excel、TXT教你玩转...

办公格式转,你遇到最难解决的问题是哪些?办公格式转,最让你头疼的文件格式是哪些?办公格式转,你最想要学习转换格式有哪些?我:Word、Excel、PPT、TXT、CAD、PDF、JPG统统都想要进行解决&#xf…

80x86汇编—分支循环程序设计

文章目录 查表法: 实现16进制数转ASCII码显示计算AX的绝对值判断有无实根地址表形成多分支从100,99,...,2,1倒序累加输入一个字符,然后输出它的二进制数大小写转换大写转小写小写转大写 冒泡排序剔除空格 查表法: 实现16进制数转ASCII码显示 题目要求: …

jquery 获取键值对中最大值_jquery属性的操作

HTML示例代码:第一个标题家用电器分类家用电器价格11男:女:第一行第二行第三行第四行第二个标题第一段第二段属性:attr(n|k,v|p|f):设置或返回被选属性的值name:返回所有所选属性的值key,value:以键值对的方式设置所有所选属性的值properties…

python怎么一直循环_python 基础之while无限循环

用户登录程序 username "chenxi" passwed "testki" counter 0 while counter < 3: # 测试3次 user input("输入用户名&#xff1a;") passw input("输入密码&#xff1a;") if user username and passw passwed : print(&qu…

织梦服务器系统win10,WIN服务器爆破DEDECMS后台目录

利用脚本python&#xff1a;#!/usr/bin/env python/** author Mochazz* team 红日安全团队* env pyton3**/import requestsimport itertoolscharacters "abcdefghijklmnopqrstuvwxyz0123456789_!#"back_dir ""flag 0url "http://192.168.1.9/t…

人工智能技术对专利制度的挑战与应对

来源&#xff1a;上海市法学会内容摘要人工智能技术作为人类的一项发明创造&#xff0c;本身具备了一定的创造力。无论是专利法治实践还是理论研究均无法否认&#xff0c;在弱人工智能时代&#xff0c;人工智能技术兼具发明创造工具和发明创造方案的提供者的双重身份。由此导致…