展开收缩的卡牌特效

展开收缩的卡牌特效

添加时间:2021-02-22 01:07:04
站长推荐丨赞助论坛,可获取海量资源终身免费下载权限奥!
举报 举报
收藏
预览
附件 附件
  • 模板类型模板类型:展开收缩
  • 模板颜色模板颜色:初级
  • 下载积分下载积分:28 米粒
  • 下载权限下载权限:

    赞助会员

一款展开收缩的卡牌特效,算是比较另类的展开收缩菜单了吧,可点击文字或卡牌来展开所有内容,再次点击则收缩卡牌内容。
展开收缩的卡牌特效
分类:导航菜单 > 展开收缩 难易:初级

页面的head部分,需引入页面的样式文件,代码如下:

<link type="text/css" rel="stylesheet" href="css/style.css">

页面的body部分,需设置好多张卡片的内容,代码如下:

<div class="inspired">
  <a href="https://jy.tp.yuanmeng.life/" target="_blank">智慧小屋 <strong>Richer</strong></a>
</div>
<div class="perspective">
  <div class='card-container'>
    <div class="message">点击 左侧 卡牌</div>
    <div class='card card-card1'>
      <div class='card__face card__face--top'>
        <span class='card__value'>
          A
        </span>
        <span class='card__suit'>
          <svg width="21px" height="16px" viewBox="0 0 21 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <path d="M1.6440972,15.2434886 L19.7934028,15.2434886 L10.71875,1.39282802 L1.6440972,15.2434886 Z" id="Path-2" stroke="#635F5C"></path>
              </g>
          </svg>
        </span>
      </div>
      <div class='card__face card__face--btm'>
        <span class='card__value'>
          A
        </span>
        <span class='card__suit'>
          <svg width="21px" height="16px" viewBox="0 0 21 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <path d="M1.6440972,15.2434886 L19.7934028,15.2434886 L10.71875,1.39282802 L1.6440972,15.2434886 Z" id="Path-2" stroke="#635F5C"></path>
              </g>
          </svg>
        </span>
      </div>
    </div>
    <div class='card card-card2'>
      <div class='card__face card__face--top'>
        <span class='card__value'>
          K
        </span>
        <span class='card__suit'>
          <svg width="20px" height="21px" viewBox="0 0 20 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <rect id="Rectangle-3" stroke="#A68385" transform="translate(10.035534, 10.071068) rotate(-315.000000) translate(-10.035534, -10.071068) " x="3.43933983" y="3.47487373" width="13.1923882" height="13.1923882"></rect>
              </g>
          </svg>
        </span>
      </div>
      <div class='card__face card__face--btm'>
        <span class='card__value'>
          K
        </span>
        <span class='card__suit'>
          <svg width="20px" height="21px" viewBox="0 0 20 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <rect id="Rectangle-3" stroke="#A68385" transform="translate(10.035534, 10.071068) rotate(-315.000000) translate(-10.035534, -10.071068) " x="3.43933983" y="3.47487373" width="13.1923882" height="13.1923882"></rect>
              </g>
          </svg>
        </span>
      </div>
    </div>
    <div class='card card-card3'>
      <div class='card__face card__face--top'>
        <span class='card__value'>
          Q
        </span>
        <span class='card__suit'>
          <svg width="21px" height="18px" viewBox="0 0 21 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <circle id="Oval" stroke="#635F5C" cx="4.5" cy="13.5" r="4"></circle>
                  <circle id="Oval" stroke="#635F5C" cx="10.5" cy="4.5" r="4"></circle>
                  <circle id="Oval" stroke="#635F5C" cx="16.5" cy="13.5" r="4"></circle>
              </g>
          </svg>
        </span>
      </div>
      <div class='card__face card__face--btm'>
        <span class='card__value'>
          Q
        </span>
        <span class='card__suit'>
          <svg width="21px" height="18px" viewBox="0 0 21 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <circle id="Oval" stroke="#635F5C" cx="4.5" cy="13.5" r="4"></circle>
                  <circle id="Oval" stroke="#635F5C" cx="10.5" cy="4.5" r="4"></circle>
                  <circle id="Oval" stroke="#635F5C" cx="16.5" cy="13.5" r="4"></circle>
              </g>
          </svg>
        </span>
      </div>
    </div>
    <div class='card card-card4'>
      <div class='card__face card__face--top'>
        <span class='card__value'>
          J
        </span>
        <span class='card__suit'>
          <svg width="20px" height="16px" viewBox="0 0 20 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <path d="M0.925347203,14.7630198 L19.0746528,14.7630198 L10,0.912359268 L0.925347203,14.7630198 Z" id="Path-2" stroke="#A68385" transform="translate(10.000000, 7.631510) rotate(-180.000000) translate(-10.000000, -7.631510) "></path>
              </g>
          </svg>
        </span>
      </div>
      <div class='card__face card__face--btm'>
        <span class='card__value'>
          J
        </span>
        <span class='card__suit'>
          <svg width="20px" height="16px" viewBox="0 0 20 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
              <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                  <path d="M0.925347203,14.7630198 L19.0746528,14.7630198 L10,0.912359268 L0.925347203,14.7630198 Z" id="Path-2" stroke="#A68385" transform="translate(10.000000, 7.631510) rotate(-180.000000) translate(-10.000000, -7.631510) "></path>
              </g>
          </svg>
        </span>
      </div>
    </div>
  </div>
</div>

页面的底部,需引入jQuery库和必要的JS文件,代码如下:

<script type="text/javascript" src='js/jquery.min.js'></script>
<script type="text/javascript" src="js/index.js"></script>
相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
热点内容推荐
标题:展开收缩的卡牌特效

*

描述:
平均回复时间:3-10分钟
规则介绍:悬赏寻求论坛网友分享资源,站点对分享内容的准确性,合法性,版权等没有足够的监管能力。如果您发现资源不正确,无法使用,不符合法律法律等情况,您可以直接举报资源。站长将尽快核实您的举报,并根据情况,采取封号,退换米粒等处理。

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
  • 背景波浪
  • 背景波浪
  • 波浪
  • 波浪
客服
在线咨询
周一 至 周日 9:00 ~ 22:00
QQ:1326974360
微信:juyoubuluo6688
客服热线
18205485173
工作日 9:00 ~ 18:00
微信扫码咨询
客户服务
欢迎咨询服务
咨询量较多时,请耐心等待
社群

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.352331s