css企业发展垂直时间轴样式
导读:企业发展垂直时间轴样式是现代网页设计技术中非常实用的一种样式。通过这种样式,可以非常直观地呈现出一个企业过去的发展历程,并且具有良好的视觉效果,让用户很容易地浏览企业历史、了解企业文化。 .vertical-timeline { posi...
企业发展垂直时间轴样式是现代网页设计技术中非常实用的一种样式。通过这种样式,可以非常直观地呈现出一个企业过去的发展历程,并且具有良好的视觉效果,让用户很容易地浏览企业历史、了解企业文化。
.vertical-timeline {
position: relative;
margin: 0 auto;
&
:before {
content: ';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
height: 100%;
width: 2px;
background-color: #dadada;
}
.vertical-timeline__item {
position: relative;
margin: 50px 0;
&
:before {
content: ';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
background-color: #007bff;
height: 20px;
width: 20px;
z-index: 1;
}
}
.vertical-timeline__icon {
position: absolute;
top: 50%;
left: -20px;
transform: translateY(-50%);
height: 40px;
width: 40px;
border-radius: 50%;
background-color: #fff;
border: 2px solid #007bff;
text-align: center;
line-height: 40px;
font-size: 20px;
color: #007bff;
z-index: 2;
transition: all 0.3s ease-in-out;
cursor: pointer;
&
:hover, &
:focus {
background-color: #007bff;
color: #fff;
}
}
.vertical-timeline__content {
position: relative;
margin-left: 60px;
padding: 10px 20px;
border-radius: 4px;
background-color: #fff;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
}
以上是一个简单的企业发展垂直时间轴样式代码,其中使用了众多CSS属性来实现页面的样式效果。通过这段代码,我们可以看出,企业发展垂直时间轴样式的实现主要是通过在HTML结构中嵌套DIV元素,并使用CSS对这些元素进行样式设置来实现的。通过这种样式的应用,能够大大提高网页的美观性和用户体验。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: css企业发展垂直时间轴样式
本文地址: https://pptw.com/jishu/595809.html
