Time Axis Timeline Effect

Source: Internet
Author: User

To achieve a time axis like QQ space timeline effect

====================

Analysis: The border-left implementation of the left UL, this will appear at the bottom of the remaining lines, not beautiful,

So consider Li's border-left implementation. Li's Padding-bottom open up and down spacing

H4 title: Before realizes the circle and navigates to the left.

The implementation of the circle using absolute positioning implementation, note under the UL and Li implementation mode, the Circle positioning position.

=========ul Implementing Border =======


. money-process. process-list {
width:90%;
height:100%;
Margin:1.5rem Auto 0;
Padding-left:2.5rem;
border-left:2px #AAD8FC Solid;
}

. process-list Li H4:before {
Content: ";
Display:block;
Width:2.2rem;
Height:2.2rem;
Line-height:2.2rem;
border:2px #52AFF9 Solid;
border-radius:50%;
Text-align:center;
Vertical-align:middle;
Font-size:1.2rem;
Position:absolute;
Left: -2.5rem;
top:-5px;
Margin-left: -1.2rem;/* negative itself is half the width, and there is a border, so you have to calculate the width of the added border half */
Background: #fff;
}

=========================

=================li Implementing Border =====================

. process-list Li {
position:relative;
Padding-bottom:2.5rem;
border-left:2px #AAD8FC Solid;
Padding-left:2.5rem;
}

. process-list Li H4:before {
Content: ";
Display:block;
Width:2.2rem;
Height:2.2rem;
Line-height:1.8rem;
/* Because of the default box model, the public style is set inside: before{box-sizing:border-box;}, so (22px-2*2px) is line height */
border:2px #52AFF9 Solid;
-webkit-border-radius:1.1rem;
Border-radius:1.1rem;
Text-align:center;
Vertical-align:middle;
Font-size:1.2rem;
Position:absolute;
left:0;
Top: -6px;
Margin-left: -1.2rem;
/* Negative itself is half the width, and there is a border, so you have to calculate the added border width half */
Background: #fff;
}

================================================

UL Realized connection: Http://files.cnblogs.com/files/leshao/%E6%97%B6%E9%97%B4%E8%BD%B4-UL.rar

Li Implementation Link: Http://files.cnblogs.com/files/leshao/%E6%97%B6%E9%97%B4%E8%BD%B4-UL.rar

Thanks for the soy sauce, Jane, a tree, 993

Time Axis Timeline Effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.