基于CSS3實現動畫內容標簽切換特效



33 128 43



特效描述:基于CSS3實現 動畫內容標簽 切換特效,基于CSS3實現動畫內容標簽切換特效

代碼結構

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300,300italic' rel='stylesheet' type='text/css'>

2. 引入JS

<script type="text/javascript" src="js/modernizr.custom.04022.js"></script>

3. HTML代碼

        <div class="container">
			<header>
				<h1>Animated Content Tabs <span>with CSS3</span></h1>
				<h2>Content tabs using CSS3 transitions, animations and :checked 
				pseudo-class</h2>
				<nav class="codrops-demos">
					<a class="current-demo" href="index.html">Demo 1</a>
					<a href="index2.html">Demo 2</a>
					<a href="index3.html">Demo 3</a>
					<a href="index4.html">Demo 4</a>
				</nav>
			</header>
			<section class="tabs">
	            <input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
		        <label for="tab-1" class="tab-label-1">About</label>
	            <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
		        <label for="tab-2" class="tab-label-2">Services</label>
	            <input id="tab-3" type="radio" name="radio-set" class="tab-selector-3" />
		        <label for="tab-3" class="tab-label-3">Work</label>
	            <input id="tab-4" type="radio" name="radio-set" class="tab-selector-4" />
		        <label for="tab-4" class="tab-label-4">Contact</label>
			    <div class="clear-shadow"></div>
		        <div class="content">
			        <div class="content-1">
						<h2>About us</h2>
                        <p>You think water moves fast? You should see ice. It 
						moves like it has a mind. Like it knows it killed the 
						world once and got a taste for murder. After the 
						avalanche, it took us a week to climb out. Now, I don&#39;t 
						know exactly when we turned on each other, but I know 
						that seven of us survived the slide... and only five 
						made it out. Now we took an oath, that I&#39;m breaking now. 
						We said we&#39;d say it was the snow that killed the other 
						two, but it wasn&#39;t. Nature is lethal but it doesn&#39;t hold 
						a candle to man.</p>
						<h3>How we work</h3>
						<p>Like you, I used to think the world was this great 
						place where everybody lived by the same standards I did, 
						then some kid with a nail showed me I was living in his 
						world, a world where chaos rules not order, a world 
						where righteousness is not rewarded. That&#39;s Cesar&#39;s 
						world, and if you&#39;re not willing to play by his rules, 
						then you&#39;re gonna have to pay the price. </p>
				    </div>
			        <div class="content-2">
						<h2>Services</h2>
                        <p>Do you see any Teletubbies in here? Do you see a 
						slender plastic tag clipped to my shirt with my name 
						printed on it? Do you see a little Asian child with a 
						blank expression on his face sitting outside on a 
						mechanical helicopter that shakes when you put quarters 
						in it? No? Well, that&#39;s what you see at a toy store. And 
						you must think you&#39;re in a toy store, because you&#39;re 
						here shopping for an infant named Jeb.</p>
						<h3>Excellence</h3>
						<p>Like you, I used to think the world was this great 
						place where everybody lived by the same standards I did, 
						then some kid with a nail showed me I was living in his 
						world, a world where chaos rules not order, a world 
						where righteousness is not rewarded. That&#39;s Cesar&#39;s 
						world, and if you&#39;re not willing to play by his rules, 
						then you&#39;re gonna have to pay the price. </p>
				    </div>
			        <div class="content-3">
						<h2>Portfolio</h2>
                        <p>The path of the righteous man is beset on all sides 
						by the iniquities of the selfish and the tyranny of evil 
						men. Blessed is he who, in the name of charity and good 
						will, shepherds the weak through the valley of darkness, 
						for he is truly his brother&#39;s keeper and the finder of 
						lost children. And I will strike down upon thee with 
						great vengeance and furious anger those who would 
						attempt to poison and destroy My brothers. And you will 
						know My name is the Lord when I lay My vengeance upon 
						thee.</p>
						<h3>Examples</h3>
						<p>Now that we know who you are, I know who I am. I&#39;m 
						not a mistake! It all makes sense! In a comic, you know 
						how you can tell who the arch-villain&#39;s going to be? 
						He&#39;s the exact opposite of the hero. And most times 
						they&#39;re friends, like you and me! I should&#39;ve known way 
						back when... You know why, David? Because of the kids. 
						They called me Mr Glass. </p>
				    </div>
				    <div class="content-4">
						<h2>Contact</h2>
                        <p>You see? It&#39;s curious. Ted did figure it out - time 
						travel. And when we get back, we gonna tell everyone. 
						How it&#39;s possible, how it&#39;s done, what the dangers are. 
						But then why fifty years in the future when the 
						spacecraft encounters a black hole does the computer 
						call it an &#39;unknown entry event&#39;? Why don&#39;t they know? 
						If they don&#39;t know, that means we never told anyone. And 
						if we never told anyone it means we never made it back. 
						Hence we die down here. Just as a matter of deductive 
						logic.</p>
						<h3>Get in touch</h3>
						<p>Well, the way they make shows is, they make one show. 
						That show&#39;s called a pilot. Then they show that show to 
						the people who make shows, and on the strength of that 
						one show they decide if they&#39;re going to make more 
						shows. Some pilots get picked and become television 
						programs. Some don&#39;t, become nothing. She starred in one 
						of the ones that became nothing. </p>
				    </div>
		        </div>
			</section>
        </div>
        <div style="text-align:center;clear:both">
</div>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 文字提示框 提示文字 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 文字收縮展開 文字收縮 文字展開 文字淡出淡進 文字淡出 文字淡進 文字拖動 文字拖拽 文字全屏 滑動選項卡 滑動切換 滾動切換 滾動條切換 文字延遲加載 文字延遲 文字加載 文字翻轉 文字旋轉 360全景 360度全景 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 文字滑動 文字滑塊 文字切換 文字選項卡 文字滾動 文字無縫滾動 文字間歇滾動 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 滑動星星打分 圖片文字 文字導航菜單 文字導航 文字菜單 文字 文字插件 其他 導航切換 菜單切換 文字標簽 文字標簽云 標簽云 文字切換 文字選項卡 鼠標滑過 鼠標懸停 跟隨鼠標移動
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

湖北30选5开奖结果走势图表