這篇文章主要講解了“怎么用css實(shí)現(xiàn)鼠標(biāo)經(jīng)過彈出子菜單特效”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“怎么用css實(shí)現(xiàn)鼠標(biāo)經(jīng)過彈出子菜單特效”吧!

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name=viewport content='width=device-width, initial-scale=1, maximum-scale=1'>
<title>Hello React!</title>
<style>
::-webkit-scrollbar{ display:none; }
::-webkit-input-placeholder {
font-size: 20px;
}web前端開發(fā)學(xué)習(xí)Q-q-u-n: 731771211,分享學(xué)習(xí)的方法和需要注意的小細(xì)節(jié),不停更新最新的教程和學(xué)習(xí)方法(詳細(xì)的前端項(xiàng)目實(shí)戰(zhàn)教學(xué)視頻,PDF)
li , span , img{
list-style-type:none;
cursor:pointer;
}
html,body,#app{
margin: 0;
padding: 0;
height: 100%;
-webkit-overflow-scrolling: touch;
}
#circle:before{
content:'';
display:block;
border-radius: 50%;
transition: .5s ;
}
#circle:hover:before{
width: 50px;
height: 50px;
border:1px solid;
transform:translate(-100px,70px);
box-shadow: 0 0 0 10px gray;
}
#circle:after{
content:'';
display:block;
border-radius: 50%;
transition: .5s ;
}
#circle:hover:after{
width: 50px;
height: 50px;
border:1px solid;
transform:translate(100px,16px);
}
#circle ~ div{
transform:translateY(50px);
}
#circle:hover ~ div{
width: 50px;
height: 50px;
border:1px solid;
border-radius: 50%;
transform:translateY(70px);
transition: transform .5s ;
}
#circle ~div:before{
content:'';
display:block;
border-radius: 50%;
transition: .5s .5s ;
}
#circle:hover ~ div:before{
width: 50px;
height: 50px;
border:1px solid;
transform:translateY(70px);
}
</style>
<link href='index.css' rel='stylesheet' type='text/css' />
<script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
<script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
<script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
<script src="index.js"></script>
</head>
<body>
<div id='app'></div>
<script type="text/babel">
const l=console.log
var Flex=(flex,props)=>
<div className={flex} style={props.style} onClick={props.click} id={props.id}>
{props.data ? props.data.map(d=><span>6qyikwg</span>) : props.children}
</div>
class Index extends React.Component{
state={
}
render() {
return (
<CC>
<div id='circle' style={{position:'absolute', width: '50px', height: '50px', border:'1px solid', borderRadius: '50%' }}>
</div>
<div ></div>
</CC>
)
}
}
ReactDOM.render(
<Index />,
document.getElementById('app')
)
</script>
</body>
</html>感謝各位的閱讀,以上就是“怎么用css實(shí)現(xiàn)鼠標(biāo)經(jīng)過彈出子菜單特效”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對(duì)怎么用css實(shí)現(xiàn)鼠標(biāo)經(jīng)過彈出子菜單特效這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
新聞名稱:怎么用css實(shí)現(xiàn)鼠標(biāo)經(jīng)過彈出子菜單特效-創(chuàng)新互聯(lián)
本文來源:http://chinadenli.net/article12/ccgsgc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、網(wǎng)頁設(shè)計(jì)公司、做網(wǎng)站、網(wǎng)站導(dǎo)航、微信小程序、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容