Brief tutorials
This is a cool 3D star animation effect made with pure CSS3. In this special effect, with the spacecraft moving forward quickly as the angle of view, all the stars are rapidly growing and moving backwards, the effect is very realistic.
How to use
HTML structure
The 3D star effect uses only one
CSS Styles
The stars in this 3D star effect are made using the Box-shadow of the Stars element. Stars elements: Before and: After pseudo elements are used to make a small star in the bac
Tab writing is more flexible, and Tab writing is more flexible.
The same html code structure works with different css codes to demonstrate different results.
Basic html Structure
12345678910
divid="tabs" class="tabs_right">ul>li>aHref = # tab1> local tyrants a>li>li>aHref = # tab2> generation II a>li>li>aHref = # tab3> rich generation a>li>ul>divid="tab1" class="tabsCont" >Contents of first tabdiv>divid="tab2" class="tabsCont">div>divid="tab3" class="tabsCont">div>div>
同样的html代码结构 配合不同的css代码 展示不一样的效果。
HTML BASIC structure
12345678910
divid="tabs" class="tabs_right">ul>li>ahref=#tab1>土豪a>li>li>ahref=#tab2>官二代a>li>li>ahref=#tab3>富二代a>li>ul>div id="tab1" class="tabsCont" >Contents of first tabdiv>divid="tab2" class="tabsCont" style="display:none">Contents of the second tabdiv>divid="tab3" class="tabsCont" style="display:none">Contents of the third tabdiv>div>
CSS Code 1
123456789101112131415161718192021222324
.
The same html code structure works with different css codes to demonstrate different results.
Basic html Structure
The effect is as follows:
Css Code 2
.tabs_bottom{width:400px;height:auto;border:1px solid #ededed;min-height:200px;position:relative;}.tabs_bottom>ul{width:100%;height:auto;background-color:#ededed;padding:0;margin:0;height:36px;position:absolute;bottom:0;}.tabs_bottom>ul>li{float:left;paddi
": "#405f80" }}
App.wxss
Set the Global font format
text{ font-family:MicroSoft yahei;}
Effect Preview
2. Carousel Diagram Playback
Swiper Documentation
New Catalog Posts
Post.wxml
Post.wxss
swiper{ width:100%; height:500rpx;}3. News list
Navigation bar background color and text
Configuration document
Post.json
{ "navigationBarBackgroundColor": "#405f80", "navigationBarTitleText":"新闻资讯"}
Effect
News list
Post.wxml
POST.WXSS
swiper{width:100%; HEIGHT:500RPX;}. post-container{Displa
be justified, the spacing between 22 is equal */ }/* Shadow one effect */Display:-webkit-box;/* set display:box for child elements, using compatible browser notation */margin:0 5px;padding:5px;box-shadow:0 0 5px Rgba (0,0,0,0.3);position:relative;Background: #ededed;/* This background color is very important, if the setting is not reasonable, you can not cover the hidden parts * *}. Fans-ul Li:before,. zsyh:after{Position:absolute; Z-index:-1;}. F
;overflow:auto;float:left;margin:5px;border:none;}.scrollbar{width:30px;height:300px;margin:0auto;}.test-1::-webkit-scrollbar {/*滚动条整体样式*/width:10px;/*高宽分别对应横竖滚动条的尺寸*/height:1px;}.test-1::-webkit-scrollbar-thumb {/*滚动条里面小方块*/border-radius:10px;-webkit-box-shadow:inset005pxrgba(0,0,0,0.2);background:#535353;}.test-1::-webkit-scrollbar-track {/*滚动条里面轨道*/-webkit-box-shadow:inset0 05pxrgba(0,0,0,0.2);border-radius:10px;background:#EDEDED;}
The res
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.