中文字幕一区二区三区在线中文-日本中文字幕 在线观看-欧美日韩国产亚洲综合-性色AV一二三天美传媒

廣州總部電話(huà):020-85564311
20年
互聯(lián)網(wǎng)應(yīng)用服務(wù)商
廣州總部電話(huà):020-85564311
20年
互聯(lián)網(wǎng)應(yīng)用服務(wù)商
請(qǐng)輸入搜索關(guān)鍵詞
知識(shí)庫(kù) 知識(shí)庫(kù)

優(yōu)網(wǎng)知識(shí)庫(kù)

探索行業(yè)前沿,共享知識(shí)寶庫(kù)

HTML+CSS實(shí)現(xiàn)Cocacola產(chǎn)品卡片懸停效果 卡片UI設(shè)計(jì)??!附源碼!!

發(fā)布日期:2025-02-03 12:45:16 瀏覽次數(shù): 1007 來(lái)源:小黑學(xué)長(zhǎng)T

 效果展示  


 完整源码  


HTML
<!DOCTYPE html><html lang="en"><head>  <meta charset="UTF-8">  <meta http-equiv="X-UA-Compatible" content="IE=edge">  <title>Css实现crad 悬停效果</title>  <link rel="stylesheet" href="css/style.css"></head><body>  <div class="card">    <div class="circle" style="--clr:#f40103;">      <img src="img/cocacola_logo.png" class="logo">    </div>    <div class="content">      <h2>Cocaola</h2>      <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sequi magni laboriosam, aspernatur pariatur odit necessitatibus.        <a href="#">Explore More</a>      </p>    </div>    <img src="img/cocacola.png" alt="cocacola" class="product_img">  </div></body></html>
style.CSS
/* google front *//* @import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap'); */@import './google-front.css';
*{  margin0;  padding0;  box-sizing: border-box;}body{  display: flex;  justify-content: center;  align-items: center;  min-height100vh;  background-color#151515;  font-family'Poppins', sans-serif;}
.card{  position: relative;  width350px;  height350px;  display: flex;  justify-content: center;  align-items: center;  transition0.5s;  /* background-color: #333; */  transition-delay0.5s;}.card:hover{  width600px;  transition-delay0.5s;}
.card .circle{  position: absolute;  top:0;  left0;  width100%;  height100%;  border-radius20px;  display: flex;  justify-content: center;  align-items: center;}
.card .circle::before{  content'';  position: absolute;  top:0;  left0;  width350px;  height350px;  border-radius50%;  background#191919;  border8px solid var(--clr);  filterdrop-shadow(0 0 10px var(--clr)) drop-shadow(0 0 60px var(--clr));  transition0.5s, background 0.5s;  transition-delay0.75s1s;}
.card:hover .circle::before{  transition-delay0.5s;  width100%;  height100%;  border-radius20px;  backgroundvar(--clr);}
.card .circle .logo{  position: relative;  width250px;  transition0.5s;  transition-delay0.5s;}.card:hover .circle .logo {  transformscale(0);  transition-delay0s;}
.card .product_img{  position: absolute;  top:50%;  left50%;  transformtranslate(-50%, -50%scale(0rotate(315deg);  height300px;  transition0.5s ease-in-out;}.card:hover .product_img {  transition-delay0.75s;  top:25%;  left92%;  transformtranslate(-50%, -50%scale(1rotate(15deg);  height500px;}
.card .content{  position: absolute;  width50%;  left20%;  padding20px 20px 30px 40px;  opacity0;  transition0.5s;  visibility: hidden;}
.card:hover .content{  transition-delay0.75s;  opacity1;  visibility: visible;  left20px;}
.card .content h2{  color#fff;  text-transform: uppercase;  font-size2.5em;  line-height1em;}.card .content p{  color#fff;}
.card .content a{  position: relative;  color#111;  background-color#fff;  padding:10px 20px;  border-radius10px;  display: inline-block;  text-decoration: none;  font-weight600;  margin-top10px;}
google-front.CSS
/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight200;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLFj_Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight200;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLFj_Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight200;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLFj_Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight300;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight300;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight300;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight400;  font-display: swap;  srcurl(../front/pxiEyp8kv8JHgFVrJJbecmNE.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight400;  font-display: swap;  srcurl(../front/pxiEyp8kv8JHgFVrJJnecmNE.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight400;  font-display: swap;  srcurl(../front/pxiEyp8kv8JHgFVrJJfecg.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight500;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight500;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight500;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight600;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight600;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight600;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight700;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight700;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight700;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight800;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDD4Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight800;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight800;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}/* devanagari */@font-face {  font-family'Poppins';  font-style: normal;  font-weight900;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLBT5Z11lFc-K.woff2format('woff2');  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;}/* latin-ext */@font-face {  font-family'Poppins';  font-style: normal;  font-weight900;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLBT5Z11lFc-K.woff2format('woff2');  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;}/* latin */@font-face {  font-family'Poppins';  font-style: normal;  font-weight900;  font-display: swap;  srcurl(../front/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2format('woff2');  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

優(yōu)網(wǎng)科技,優(yōu)秀企業(yè)首選的互聯(lián)網(wǎng)供應(yīng)服務(wù)商

優(yōu)網(wǎng)科技秉承"專(zhuān)業(yè)團(tuán)隊(duì)、品質(zhì)服務(wù)" 的經(jīng)營(yíng)理念,誠(chéng)信務(wù)實(shí)的服務(wù)了近萬(wàn)家客戶(hù),成為眾多世界500強(qiáng)、集團(tuán)和上市公司的長(zhǎng)期合作伙伴!

優(yōu)網(wǎng)科技成立于2001年,擅長(zhǎng)網(wǎng)站建設(shè)、網(wǎng)站與各類(lèi)業(yè)務(wù)系統(tǒng)深度整合,致力于提供完善的企業(yè)互聯(lián)網(wǎng)解決方案。優(yōu)網(wǎng)科技提供PC端網(wǎng)站建設(shè)(品牌展示型、官方門(mén)戶(hù)型、營(yíng)銷(xiāo)商務(wù)型、電子商務(wù)型、信息門(mén)戶(hù)型、微信小程序定制開(kāi)發(fā)、移動(dòng)端應(yīng)用(手機(jī)站、APP開(kāi)發(fā))、微信定制開(kāi)發(fā)(微信官網(wǎng)、微信商城、企業(yè)微信)等一系列互聯(lián)網(wǎng)應(yīng)用服務(wù)。


我要投稿

姓名

文章鏈接

提交即表示你已閱讀并同意《個(gè)人信息保護(hù)聲明》

專(zhuān)屬顧問(wèn) 專(zhuān)屬顧問(wèn)
掃碼咨詢(xún)您的優(yōu)網(wǎng)專(zhuān)屬顧問(wèn)!
專(zhuān)屬顧問(wèn)
馬上咨詢(xún)
聯(lián)系專(zhuān)屬顧問(wèn)
聯(lián)系專(zhuān)屬顧問(wèn)
聯(lián)系專(zhuān)屬顧問(wèn)
掃一掃馬上咨詢(xún)
掃一掃馬上咨詢(xún)

掃一掃馬上咨詢(xún)

和我們?cè)诰€交談!