极乐门资源网 Design By www.ioogu.com
2014年的圣诞节即将来临之季。爱编程小编给大家分享一款2014年圣诞节倒计时网页,当天的日期卡片有抖动的效果。一起看下效果图:
鼠标点击5号前
鼠标点击5号后
实现的代码。
html代码:
XML/HTML Code复制内容到剪贴板- <h1>
- Merry Christmas</h1>
- <ul>
- <li>
- <div class="door">
- 1</div>
- </li>
- <li>
- <div class="door">
- 2</div>
- </li>
- <li>
- <div class="door">
- 3</div>
- </li>
- <li>
- <div class="door">
- 4</div>
- </li>
- <li>
- <div class="door">
- 5</div>
- </li>
- <li>
- <div class="door">
- 6</div>
- </li>
- <li>
- <div class="door">
- 7</div>
- </li>
- <li>
- <div class="door">
- 8</div>
- </li>
- <li>
- <div class="door">
- 9</div>
- </li>
- <li>
- <div class="door">
- 10</div>
- </li>
- <li>
- <div class="door">
- 11</div>
- </li>
- <li>
- <div class="door">
- 12</div>
- </li>
- <li>
- <div class="door">
- 13</div>
- </li>
- <li>
- <div class="door">
- 14</div>
- </li>
- <li>
- <div class="door">
- 15</div>
- </li>
- <li>
- <div class="door">
- 16</div>
- </li>
- <li>
- <div class="door">
- 17</div>
- </li>
- <li>
- <div class="door">
- 18</div>
- </li>
- <li>
- <div class="door">
- 19</div>
- </li>
- <li>
- <div class="door">
- 20</div>
- </li>
- <li>
- <div class="door">
- 21</div>
- </li>
- <li>
- <div class="door">
- 22</div>
- </li>
- <li>
- <div class="door">
- 23</div>
- </li>
- <li>
- <div class="door">
- 24</div>
- </li>
- <li>
- <div class="door">
- 25</div>
- </li>
- </ul>
- <p id="message">
- </p>
css3代码:
C/C++ Code复制内容到剪贴板- body {
- background: url("xmas.jpg");
- color: #fff;
- font-family: 'Oleo Script', cursive;
- padding: 20px;
- font-weight: 400;
- }
- h1 {
- margin:0;
- font-size:75px;
- line-height: 75px;
- text-align: center;
- font-weight: 400;
- }
- ul {
- margin:0 auto 30px auto;
- padding:0;
- list-style-type:none;
- max-width:900px;
- width: 100%;
- text-align: center;
- user-select: none;
- }
- li {
- font-weight: 400;
- background-color: #fff;
- box-sizing: border-box;
- border-radius: 6px;
- display: inline-block;
- color:#111;
- cursor:pointer;
- font-size: 26px;
- padding:15px;
- margin:25px 12px;
- width: 130px;
- height:130px;
- line-height: 100px;
- text-align:center;
- position: relative;
- vertical-align:top;
- user-select: none;
- perspective: 800px;
- transition: all 0.4s ease-in-out;
- }
- ul li:last-child {
- background-size:cover;
- display:block;
- clear:both;
- margin: 20px auto 0 auto;
- width: 200px;
- height: 275px;
- }
- ul li:last-child .door {
- font-size: 100px;
- width: 200px;
- height: 275px;
- line-height: 240px;
- }
- ul li:last-child .revealed {
- line-height: 123px;
- }
- .door {
- user-select: none;
- color:#fff;
- font-size: 70px;
- position: absolute;
- top:0;
- left:0;
- background-color: #91c1cc;
- box-sizing: border-box;
- border-top: 2px #eee dashed;
- border-right: 2px #eee dashed;
- border-bottom: 2px #eee dashed;
- border-left: 1px #eee solid;
- border-radius: 6px;
- padding:15px;
- width: 130px;
- height:130px;
- transform-origin: 0 40%;
- transition: all 0.4s ease-in-out;
- transform-style: preserve-3d;
- }
- .current .door {
- background-color: #7EAD44;
- }
- .current .door.open{
- color: #7EAD44;
- }
- .revealed {
- user-select: none;
- }
- #message {
- box-sizing: border-box;
- color: #222;
- display: none;
- font-size: 24px;
- padding: 20px;
- background: #eddecb;
- max-width: 500px;
- width: 100%;
- border-radius: 15px;
- margin: 0 auto;
- }
- .open {
- box-shadow: 14px 0px 15px -1px rgba(0,0,0,0.2);
- color: #91c1cc;
- transform: rotate3d(0, 1, 0, -98deg);
- }
- .jiggle {
- animation: jiggle 0.2s infinite;
- transform: rotate(-1deg);
- }
- @keyframes jiggle {
- 0% {
- transform: rotate(-1deg);
- }
- 50% {
- transform: rotate(1deg);
- }
- }
- @media screen and (min-width: 480px) {
- li {
- margin:25px 20px;
- }
- }
- @media screen and (min-width: 768px) {
- body {
- background-size:150px;
- }
- p {
- right: 6%;
- top: 20%;
- bottom: auto;
- margin-left: auto;
- left: auto;
- }
- }
标签:
圣诞节,倒计时素材
极乐门资源网 Design By www.ioogu.com
极乐门资源网
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
极乐门资源网 Design By www.ioogu.com
暂无2014年圣诞节倒计时网页的制作过程的评论...
更新日志
2024年11月18日
2024年11月18日
- APM亚流新世代《一起冒险》[320K/MP3][68.66MB]
- FIM《天伦乐》(DaydreamsAndLullabies)24K金碟[WAV+CUE]
- 【雨果唱片】中国管弦乐《鹿回头》
- 【雨果唱片】中国管弦乐《鹿回头》WAV
- APM亚流新世代《一起冒险》[FLAC/分轨][106.77MB]
- 崔健《飞狗》律冻文化[WAV+CUE][1.1G]
- 罗志祥《舞状元 (Explicit)》[320K/MP3][66.77MB]
- 尤雅.1997-幽雅精粹2CD【南方】【WAV+CUE】
- 张惠妹.2007-STAR(引进版)【EMI百代】【WAV+CUE】
- 群星.2008-LOVE情歌集VOL.8【正东】【WAV+CUE】
- 罗志祥《舞状元 (Explicit)》[FLAC/分轨][360.76MB]
- Tank《我不伟大,至少我能改变我。》[320K/MP3][160.41MB]
- Tank《我不伟大,至少我能改变我。》[FLAC/分轨][236.89MB]
- CD圣经推荐-夏韶声《谙2》SACD-ISO
- 钟镇涛-《百分百钟镇涛》首批限量版SACD-ISO