怎么使用html+css+javascript制作结婚邀请函

发布时间:2022-12-01 17:51:35 作者:iii
来源:亿速云 阅读:137

本篇内容介绍了“怎么使用html+css+javascript制作结婚邀请函”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

HTML结构代码

<!DOCTYPE html>
<html class=" js-no-overflow-scrolling">
<head>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>h6电子邀请函</title>
<link rel="stylesheet" type="text/css" href="page-animation.css">
<link rel="stylesheet" type="text/css" href="H5FullscreenPage.css">
<style type="text/css">html, body {
        margin: 0;
        width: 100%;
        height: 100%;
        font-family: arial;
        text-align: center;
    }
    
    * {
        margin:0;
        padding: 0;
    }
    ul {
        list-style: none;
    }
    body {
        max-width: 640px;
        margin: auto;
    }</style>

</head>
<script>alert("温馨提示:手机访问方可滚动查看下一页!")</script>
<body class="H5FullscreenPage">
    <div class="niben_banc">
        <a href="#"  onclick=" Tanchuc()">基本信息</a>
        <a href="#">保存</a>
    </div>
    <!--  -->
     <!--弹框  -->
     <div class="tanchu_xx_web1 Tan_c">
        <div class="tcc_beij_x_web" onclick=" off()"></div> 
        <div class="kuang_li">
            <div class="off" onclick=" off()"></div>
            <img class="img_bj" src="img/img_web3_03.png" alt=""> 
            <div class="bt">
                <h3>请输入您和您爱侣的名字</h3>
                <p>还有你们喜结连理的时间哦</p>
            </div>
            <div class="bdkuan"> 
                <input type="text" placeholder="新郎"> 
                <input type="text" placeholder="新娘">
                <input type="text" placeholder="新郎电话">
                <input type="text" placeholder="新娘电话">
                <input type="text" placeholder="结婚日期(如:2020年5月20日(星期六)12:00)"> 
                <input type="text" placeholder="地址"> 
                <button>确定</button>
            </div> 
        </div>
        <script>function Tanchuc(){
            $(".Tan_c").show();
        } 
        function off(){
            $(".Tan_c").hide();    
        }</script>
    </div> 
    <!--  --> 
    <div class="H5FullscreenPage-wrap">
        <!--  --> 
        <div class="item item1">
            <!-- 金色 -->
            <div class="part rollInLeft shang_img"> 
                <img src="img/2.png" alt=""> 
            </div>
            <div class="part rollInRight shang_img shang_img_b">
                <img src="img/21.png" alt="">
            </div>
            <!-- 线条 -->
            <div class="part top_Xial slideUp" data-delay="400"></div>
            <div class="part top_Xial top_Xial_b slideDown" data-delay="400"></div>
            <!--hua  金花  -->
            <div class="part fadeIn jinse_hua" data-delay="1000"> </div>
            <div class="part fadeIn jinse_hua jinse_hua_x" data-delay="1000"></div> 
            <!-- 叶子 --> 
            <div class="part slideLeft yezi_zuo"></div>
            <div class="part slideLeft yezi_zuo yezi_zuo_zq"></div>
            <div class="part slideDown yezi_zuo_xx"></div>
            <div class="part slideDown yezi_zuo_yrx"></div>
            <div class="part zoomIn piao_gif"  data-delay="1500">
                <img src="img/jingy.gif" alt="">
            </div>
            <!-- 中间 -->
            <div class="part fadeIn kuang_nieg" data-delay="800">
                <img src="img/19.png" alt="">
            </div>
            <div class="part fadeIn kuang_nieg" data-delay="1000">
                <img class="nie" src="img/19.png" alt="">
            </div>
            <!-- 中间叶子 -->
            <div class="part fadeIn yezi_zhongk" data-delay="1300"></div>
            <div class="part fadeIn yezi_zhongk_x" data-delay="1300"></div>
            <!-- 字 -->
            <div class="part zhongjiek_Ge" data-delay="1800">
                <img src="img/9.png" alt="">
            </div>
            <div class="part zhongjiek_Ge" data-delay="1800">
                <img class="nio" src="img/1.png" alt="">
            </div>
            <!-- 文字 -->
            <div class="part xinniang_xinlang" data-delay="1800">
                <p>Mr.志明<b>&</b>春娇.Miss</p>
                <dd>2020/05/20</dd>
                <span>You two are the prince and princess in a fairy tale and may you live happily everafter!</span>
            </div>
            <!-- 修改 -->
            <!-- <div class="xiugai_nige"></div> -->
           
            <!--  -->
            <!-- <div class="part part1 fadeIn" data-delay="1000"> </div>
            <div class="part part2 fadeIn"></div> -->
        </div>
        <!--  -->
        <div class="item item2">
            <!-- 金色 -->
            <div class="part rollInLeft shang_img"> 
                <img src="img/2.png" alt="">

            </div>
            <div class="part rollInRight shang_img shang_img_b">
                <img src="img/21.png" alt="">
            </div>
            <!-- 线条 -->
            <div class="part top_Xial slideUp" data-delay="400"></div>
            <div class="part top_Xial top_Xial_b slideDown" data-delay="400"></div>
            <!--hua  金花  -->
            <div class="part fadeIn jinse_hua" data-delay="1000"> </div>
            <div class="part fadeIn jinse_hua jinse_hua_x" data-delay="1000"></div> 
            <!-- 叶子 --> 
            <div class="part slideLeft yezi_zuo"></div>
            <div class="part slideLeft yezi_zuo yezi_zuo_zq"></div>
            <div class="part slideDown yezi_zuo_xx"></div>
            <div class="part slideDown yezi_zuo_yrx"></div>
            <div class="part zoomIn piao_gif"  data-delay="1500" style="    width: 100%;
            height: 100%;
            top: 0;">
                <img src="img/jingy.gif" alt="">
            </div>
            <!-- 中间 -->
            <div class="part fadeIn kuang_nieg" data-delay="800">
                <img src="img/19.png" alt="">
            </div>
            <div class="part fadeIn kuang_nieg" data-delay="1000">
                <img class="nie" src="img/19.png" alt="">
            </div>
            <!-- 中间叶子 -->
            <div class="part fadeIn yezi_zhongk" data-delay="1300"></div>
            <div class="part fadeIn yezi_zhongk_x" data-delay="1300"></div>
            <!-- 字 -->
            <div class="part zhongjiek_Ge rentx_kuang" data-delay="1800">
                <div class="rentx">
                    <img src="img/xinlang1.jpg" alt="">
                </div>
            </div> 
            <!-- 文字 -->
            <div class="part xinniang_xinlang" data-delay="1800"   >
                <p>新郎:志明</p>
                <dd style="    line-height: .4rem; padding-top:.2rem;">要你拥有会长大的幸福<br>一天比一天像公主,梦都被满足</dd>
                <!-- <span>You two are the prince and princess in a fairy tale and may you live happily everafter!</span> -->
            </div>
            <!--  --> 
            <!-- 修改 -->
            <div class="xiugai_nige" style="    left: .3rem;top: 5.8rem;"></div>
            <!--  -->
        </div>
        <!--  -->
        <div class="item item3">
            <!-- 金色 -->
            <div class="part rollInLeft shang_img"> 
                <img src="img/2.png" alt="">

            </div>
            <div class="part rollInRight shang_img shang_img_b">
                <img src="img/21.png" alt="">
            </div>
            <!-- 线条 -->
            <div class="part top_Xial slideUp" data-delay="400"></div>
            <div class="part top_Xial top_Xial_b slideDown" data-delay="400"></div>
            <!--hua  金花  -->
            <div class="part fadeIn jinse_hua" data-delay="1000"> </div>
            <div class="part fadeIn jinse_hua jinse_hua_x" data-delay="1000"></div> 
            <!-- 叶子 --> 
            <div class="part slideLeft yezi_zuo"></div>
            <div class="part slideLeft yezi_zuo yezi_zuo_zq"></div>
            <div class="part slideDown yezi_zuo_xx"></div>
            <div class="part slideDown yezi_zuo_yrx"></div>
            <div class="part zoomIn piao_gif"  data-delay="1500" style="    width: 100%;
            height: 100%;
            top: 0;">
                <img src="img/jingy.gif" alt="">
            </div>
            <!-- 中间 -->
            <div class="part fadeIn kuang_nieg" data-delay="800">
                <img src="img/19.png" alt="">
            </div>
            <div class="part fadeIn kuang_nieg" data-delay="1000">
                <img class="nie" src="img/19.png" alt="">
            </div>
            <!-- 中间叶子 -->
            <div class="part fadeIn yezi_zhongk" data-delay="1300"></div>
            <div class="part fadeIn yezi_zhongk_x" data-delay="1300"></div>
            <!-- 字 -->
            <div class="part zhongjiek_Ge rentx_kuang" data-delay="1800">
                <div class="rentx">
                    <img src="img/ninnaing.jpg" alt="">
                </div>
            </div> 
            <!-- 文字 -->
            <div class="part xinniang_xinlang" data-delay="1800"   >
                <p>新娘:春娇</p>
                <dd style="    line-height: .4rem; padding-top:.2rem;">全世界都知道,我不在乎付出多少<br>我想这是幸福的写照</dd>
                <!-- <span>You two are the prince and princess in a fairy tale and may you live happily everafter!</span> -->
            </div>
            <!--  --> 
            <!-- 修改 -->
            <div class="xiugai_nige" style="    left: .3rem;top: 5.8rem;"></div>
            <!--  -->
        </div>
        <!--  -->
        <div class="item item4">
            <div class="part rollInLeft shang_img"> 
                <img src="img/2.png" alt=""> 
            </div>
            <div class="part rollInRight shang_img shang_img_b">
                <img src="img/21.png" alt="">
            </div>
            <!-- 线条 -->
            <div class="part top_Xial slideUp" data-delay="400"></div>
            <div class="part top_Xial top_Xial_b slideDown" data-delay="400"></div>
            <!--hua  金花  -->
            <div class="part fadeIn jinse_hua jinse_hua_no" data-delay="1000"> </div>
            <div class="part fadeIn jinse_hua jinse_hua_x jinse_hua_no" data-delay="1000"></div> 
            <!-- 叶子 --> 
            <div class="part slideLeft yezi_zuo"></div>
            <div class="part slideLeft yezi_zuo yezi_zuo_zq"></div>
            <div class="part slideDown yezi_zuo_xx"></div>
            <div class="part slideDown yezi_zuo_yrx"></div>
       
            <!-- 中间叶子 -->
            <div class="part fadeIn yezi_zhongk yezi_zhongk_dier" data-delay="1300"></div> 
          
            <!-- h婚纱照 --> 
            <div class="part nimen_img slideDown"  data-delay="1800">
                <img src="img/nin_gs.jpg" alt="">
            </div>
            <!-- 文字 -->
            <div class="part xinniang_xinlang" data-delay="1800"   >
                <!-- <p>新娘:春娇</p> -->
                <dd style="line-height: .4rem; padding-top:.2rem;">深爱之人藏心不挂嘴<br>久念之人在梦不在眼</dd>
                <!-- <span>You two are the prince and princess in a fairy tale and may you live happily everafter!</span> -->
            </div>
            <!-- 修改 -->
            <div class="xiugai_nige"></div>
            <!--  --> 
            <!--  -->
        </div>
        <!--  -->
        <div class="item item5">
            <div class="part rollInLeft shang_img"> 
                <img src="img/2.png" alt=""> 
            </div>
            <div class="part rollInRight shang_img shang_img_b">
                <img src="img/21.png" alt="">
            </div>
            <!-- 线条 -->
            <div class="part top_Xial slideUp" data-delay="400"></div>
            <div class="part top_Xial top_Xial_b slideDown" data-delay="400"></div>
            <!--hua  金花  -->
            <div class="part fadeIn jinse_hua jinse_hua_no" data-delay="1000"> </div>
            <div class="part fadeIn jinse_hua jinse_hua_x jinse_hua_no" data-delay="1000"></div> 
            <!-- 叶子 --> 
            <div class="part slideLeft yezi_zuo"></div>
            <div class="part slideLeft yezi_zuo yezi_zuo_zq"></div>
            <div class="part slideDown yezi_zuo_xx"></div>
            <div class="part slideDown yezi_zuo_yrx"></div>
       
            <!-- 中间叶子 -->
            <div class="part fadeIn yezi_zhongk yezi_zhongk_dier" data-delay="1300"></div> 
            <!-- 字 -->
            <div class="part zhongjiek_Ge zhongjiek_Ge_er" data-delay="1800">
                <img src="img/9.png" alt="">
            </div>
            <div class="part zhongjiek_Ge zhongjiek_Ge_er" data-delay="1800">
                <img class="nio" src="img/1.png" alt="">
            </div>
            <!-- h婚纱照 -->  
            <div class="part nimen_img nimen_img_text slideDown"  data-delay="1800">
                 <div class="hou_tupian">
                    <p>在最好的年华</p>
                    <p>相见</p>
                    <p>在最美的时光里</p>
                    <p>相爱</p>
                    <p> 沉浸在幸福中的我们将于</p>
                    <p>2020年5月20日(星期六)12:00</p> 
                    <p>举办婚礼</p>
                    <p>诚邀您和您的家人出席</p>
                    <p>新郎:志明 & 新娘:春娇</p>
                    <p>席设</p>
                    <p>贵州省贵阳市南明区国际大酒店</p>
                    <p>期待您的到来</p>
                    <p class="an">
                        <a href="tel:18275330710">联系新郎</a>
                        <a href="tel:18275330710">联系新娘</a>
                    </p>
                 </div>
            </div>
            <!-- 修改 -->
            <!-- <div class="xiugai_nige"></div> -->
            <!--  --> 
        </div>
        <!--  --> 
    </div>
    <script type="text/javascript" src="index_Zepto.js"></script> 
    <script type="text/javascript" src="H5FullscreenPage.js"></script>
    <script type="text/javascript">.init({'type':2,'pageShow' : function(dom){ 
        },'pageHide' : function(dom){
            //console.log(dom);
    }});</script>
</body>
</html>

CSS样式代码

.fadeIn {
        animation-name: fadeIn;
        -webkit-animation-name: fadeIn; 

        animation-duration: 1.5s;   
        -webkit-animation-duration: 1.5s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            transform: scale(0);
            opacity: 0.0;       
        }
        60% {
            transform: scale(1.1);  
        }
        80% {
            transform: scale(0.9);
            opacity: 1; 
        }   
        100% {
            transform: scale(1);
            opacity: 1; 
        }       
    }

    @-webkit-keyframes {
        0% {
            -webkit-transform: scale(0);
            opacity: 0.0;       
        }
        60% {
            -webkit-transform: scale(1.1);
        }
        80% {
            -webkit-transform: scale(0.9);
            opacity: 1; 
        }   
        100% {
            -webkit-transform: scale(1);
            opacity: 1; 
        }       
    }
    .slideLeft{
        animation-name: slideLeft;
        -webkit-animation-name: slideLeft;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(-100%, 0, 0);
                    transform: translate3d(-100%, 0, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }

    @-webkit-keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(-100%, 0, 0);
                    transform: translate3d(-100%, 0, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }
    .slideRight{
        animation-name: slideRight;
        -webkit-animation-name: slideRight;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(100%, 0, 0);
                    transform: translate3d(100%, 0, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }

    @-webkit-keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(100%, 0, 0);
                    transform: translate3d(100%, 0, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }
    .slideUp {
        animation-name: slideUp;
        -webkit-animation-name: slideUp;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(0, -100%, 0);
                    transform: translate3d(0, -100%, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }

    @-webkit-keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(0, -100%, 0);
                    transform: translate3d(0, -100%, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }
    .slideDown {
        animation-name: slideDown;
        -webkit-animation-name: slideDown;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(0, 100%, 0);
                    transform: translate3d(0, 100%, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }

    @-webkit-keyframes {
        0% {
            opacity: 0;
            -webkit-transform: translate3d(0, 100%, 0);
                    transform: translate3d(0, 100%, 0);
          }

          100% {
            opacity: 1;
            -webkit-transform: none;
                    transform: none;
          }
    }
    .rotateIn {
        animation-name: rotateIn;
        -webkit-animation-name: rotateIn;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }

    @keyframes {
        0% {
            -webkit-transform-origin: center;
                    transform-origin: center;
            -webkit-transform: rotate3d(0, 0, 1, -200deg);
                    transform: rotate3d(0, 0, 1, -200deg);
            opacity: 0;
          }

          100% {
            -webkit-transform-origin: center;
                    transform-origin: center;
            -webkit-transform: none;
                    transform: none;
            opacity: 1;
          }
    }

    @-webkit-keyframes {
        0% {
            -webkit-transform-origin: center;
                    transform-origin: center;
            -webkit-transform: rotate3d(0, 0, 1, -200deg);
                    transform: rotate3d(0, 0, 1, -200deg);
            opacity: 0;
          }

          100% {
            -webkit-transform-origin: center;
                    transform-origin: center;
            -webkit-transform: none;
                    transform: none;
            opacity: 1;
          }
    }
    .zoomIn {
        animation-name: zoomIn;
        -webkit-animation-name: zoomIn;  

        animation-duration: 1s; 
        -webkit-animation-duration: 1s;

        animation-timing-function: ease-in-out; 
        -webkit-animation-timing-function: ease-in-out;     

        
    }
    @-webkit-keyframes {
      0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
                transform: scale3d(.3, .3, .3);
      }

      50% {
        opacity: 1;
      }
    }

    @keyframes {
      0% {
        opacity: 0;
        -webkit-transform: scale3d(.3, .3, .3);
                transform: scale3d(.3, .3, .3);
      }

      50% {
        opacity: 1;
      }
    }
    .heartBeat{
        animation-name: heartBeat;
        -webkit-animation-name: heartBeat;  

        animation-duration: 1.5s;   
        -webkit-animation-duration: 1.5s;

        animation-iteration-count: infinite;
        -webkit-animation-iteration-count: infinite;
    }

    @keyframes {
        0% {
            transform: scale(0.9);
            opacity: 0.7;       
        }
        50% {
            transform: scale(1);
            opacity: 1; 
        }   
        100% {
            transform: scale(0.9);
            opacity: 0.7;   
        }           
    }

    @-webkit-keyframes {
        0% {
            -webkit-transform: scale(0.95);
            opacity: 0.7;       
        }
        50% {
            -webkit-transform: scale(1);
            opacity: 1; 
        }   
        100% {
            -webkit-transform: scale(0.95);
            opacity: 0.7;   
        }           
    }
    .rollInLeft {
      animation-name: rollInLeft;
      -webkit-animation-name: rollInLeft;  

      animation-duration: 1s;   
      -webkit-animation-duration: 1s;
        
      animation-timing-function: ease-in-out; 
      -webkit-animation-timing-function: ease-in-out;    
    }
    @-webkit-keyframes {
      0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
                transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
      }

      100% {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
      }
    }

    @keyframes {
      0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
                transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
      }

      100% {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
      }
    }
    .rollInRight {
      animation-name: rollInRight;
      -webkit-animation-name: rollInRight;  

      animation-duration: 1s;   
      -webkit-animation-duration: 1s;
        
      animation-timing-function: ease-in-out; 
      -webkit-animation-timing-function: ease-in-out;    
    }
    @-webkit-keyframes {
      0% {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
                transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
      }

      100% {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
      }
    }

    @keyframes {
      0% {
        opacity: 0;
        -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
                transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
      }

      100% {
        opacity: 1;
        -webkit-transform: none;
                transform: none;
      }
    }

“怎么使用html+css+javascript制作结婚邀请函”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!

推荐阅读:
  1. html+css+javascript实现列表循环滚动的方法
  2. HTML+CSS+JavaScript如何制作简易计算器

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

html css javascript

上一篇:如何使用HTML+CSS+JS制作3D立方体图像库

下一篇:如何使用html+css+javascript制作表白网站

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》