search
HomeWeb Front-endCSS Tutorialcss3+jquery realizes the page turning animation effect of questionnaire answer card

The special effects of this option survey are in the form of tabs. After each question is answered, it automatically switches to the next one, which is quite unique. Using jQuery and CSS3, suitable for HTML5 browser.

The rendering is as follows:


The code is as follows:

<!DOCTYPE html><html><head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>jQuery+CSS3答题卡翻页效果_何问起</title>
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="description" content="何问起">
    <meta name="keywords" content="何问起">
    <link href="http://hovertree.com/texiao/jquery/87/hovertreeanswer.css" rel="stylesheet" />
    <style>h2{color:white;text-align:center;}a{color:deeppink;font-size:16px;}</style></head><body style="background-color:#1fc587">

    <p class="wrapper">
        <br />
        <h2 id="jQuery-CSS-翻页效果的调查答题卡">jQuery+CSS3翻页效果的调查答题卡</h2>
        <p id="answer" class="card_wrap">
            <!--Q1-->
            <p class="card_cont card1">
                <p class="card">
                    <p class="question"><span>Q1、</span>你第一门接触的编程语言是?</p>
                    <ul class="select">
                        <li>
                            <input id="q1_1" type="radio" name="r-group-1">
                            <label for="q1_1">JavaScript</label>
                        </li>
                        <li>
                            <input id="q1_2" type="radio" name="r-group-1">
                            <label for="q1_2">C语言</label>
                        </li>
                        <li>
                            <input id="q1_3" type="radio" name="r-group-1">
                            <label for="q1_3">Java</label>
                        </li>
                        <li>
                            <input id="q1_4" type="radio" name="r-group-1">
                            <label for="q1_4">C#</label>
                        </li>
                        <li>
                            <input id="q1_5" type="radio" name="r-group-1">
                            <label for="q1_5">其他</label>
                        </li>
                    </ul>
                    <p class="card_bottom"><span><b>1</b>/5</span></p>
                </p>
            </p>
            <!--Q2-->
            <p class="card_cont card2">
                <p class="card">
                    <p class="question"><span>Q2、</span>你主要从事的开发设计工作是?</p>
                    <ul class="select">
                        <li>
                            <input id="q2_1" type="radio" name="r-group-2">
                            <label for="q2_1">Web前端</label>
                        </li>
                        <li>
                            <input id="q2_2" type="radio" name="r-group-2">
                            <label for="q2_2">安卓软件开发</label>
                        </li>
                        <li>
                            <input id="q2_3" type="radio" name="r-group-2">
                            <label for="q2_3">IOS软件开发</label>
                        </li>
                        <li>
                            <input id="q2_4" type="radio" name="r-group-2">
                            <label for="q2_4">网站、软件维护</label>
                        </li>
                        <li>
                            <input id="q2_5" type="radio" name="r-group-2">
                            <label for="q2_5">数据库开发管理</label>
                        </li>
                    </ul>
                    <p class="card_bottom"><a class="prev">上一题</a><span><b>2</b>/5</span></p>
                </p>
            </p>
            <!--Q3-->
            <p class="card_cont card3">
                <p class="card">
                    <p class="question"><span>Q3、</span>你最早知道的有关开发的网站是哪个?</p>
                    <ul class="select">
                        <li>
                            <input id="q3_1" type="radio" name="r-group-3">
                            <label for="q3_1">何问起(http://hovertree.com/)</label>
                        </li>
                        <li>
                            <input id="q3_2" type="radio" name="r-group-3">
                            <label for="q3_2">博客园(http://www.cnblogs.com/)</label>
                        </li>
                        <li>
                            <input id="q3_3" type="radio" name="r-group-3">
                            <label for="q3_3">柯乐义(http://keleyi.com/)</label>
                        </li>
                        <li>
                            <input id="q3_4" type="radio" name="r-group-3">
                            <label for="q3_4">CSDN(http://www.csdn.net/)</label>
                        </li>
                        <li>
                            <input id="q3_5" type="radio" name="r-group-3">
                            <label for="q3_5">其他</label>
                        </li>
                    </ul>
                    <p class="card_bottom"><a class="prev">上一题</a><span><b>3</b>/5</span></p>
                </p>
            </p>
            <!--Q4-->
            <p class="card_cont">
                <p class="card">
                    <p class="question"><span>Q4、</span>你开发中使用的主要操作系统是?</p>
                    <ul class="select">
                        <li>
                            <input id="q4_1" type="radio" name="r-group-4">
                            <label for="q4_1">Windows 10</label>
                        </li>
                        <li>
                            <input id="q4_2" type="radio" name="r-group-4">
                            <label for="q4_2">Windows 7</label>
                        </li>
                        <li>
                            <input id="q4_3" type="radio" name="r-group-4">
                            <label for="q4_3">Linux</label>
                        </li>
                        <li>
                            <input id="q4_4" type="radio" name="r-group-4">
                            <label for="q4_4">Mac OS</label>
                        </li>
                        <li>
                            <input id="q4_5" type="radio" name="r-group-4">
                            <label for="q4_5">其他</label>
                        </li>
                    </ul>
                    <p class="card_bottom"><a class="prev">上一题</a><span><b>4</b>/5</span></p>
                </p>
            </p>
            <!--Q5-->
            <p class="card_cont">
                <p class="card">
                    <p class="question"><span>Q5、</span>你觉得下面哪个栏目最实用?</p>
                    <ul class="select">
                        <li>
                            <input id="q5_1" type="radio" name="r-group-5">
                            <label for="q5_1">网页特效 http://hovertree.com/menu/texiao/ </label>
                        </li>
                        <li>
                            <input id="q5_2" type="radio" name="r-group-5">
                            <label for="q5_2">在线题库 http://hovertree.com/tiku/ </label>
                        </li>
                        <li>
                            <input id="q5_3" type="radio" name="r-group-5">
                            <label for="q5_3">jQuery下载 http://hovertree.com/h/bjaf/ati6k7yk.htm</label>
                        </li>
                        <li>
                            <input id="q5_4" type="radio" name="r-group-5">
                            <label for="q5_4">图片 http://hovertree.com/hvtimg/ </label>
                        </li>
                        <li>
                            <input id="q5_5" type="radio" name="r-group-5">
                            <label for="q5_5">代码 http://hovertree.com/code/ </label>
                        </li>
                    </ul>
                    <p class="card_bottom"><a class="prev">上一题</a><span><b>5</b>/5</span></p>
                </p>
            </p>
            <!--6-->
            <p class="card_cont">
                <p class="card">
                    <p class="question"></p>
                    <ul class="select">
                        <li>感谢您的参与!<br />
                        更多信息请访问何问起网。                        <br />
                            <a href="http://hovertree.com" target="_blank">何问起首页</a>
                        </li>
                    </ul>
                    <p class="card_bottom"><a class="prev">上一题</a></p>
                </p>
            </p>
        </p><!--/card_wrap-->
        <br /><br />
        <p style="text-align:center;">
            <a href="http://hovertree.com">首页</a>
            <a href="http://hovertree.com/texiao/">特效库</a>
            <a href="http://hovertree.com/h/bjaf/ml26ksm5.htm">原文</a>
        </p>
    </p>

    <script src="http://down.hovertree.com/jquery/jquery-1.8.3.min.js"></script>
    <script src="http://hovertree.com/texiao/jquery/87/hovertreeanswer.js"></script>
    <script>
    $(function(){
        $("#answer").answerSheet({});
    })    </script></body></html>

The above is the detailed content of css3+jquery realizes the page turning animation effect of questionnaire answer card. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
CSS Counters: A Comprehensive Guide to Automatic NumberingCSS Counters: A Comprehensive Guide to Automatic NumberingMay 07, 2025 pm 03:45 PM

CSSCountersareusedtomanageautomaticnumberinginwebdesigns.1)Theycanbeusedfortablesofcontents,listitems,andcustomnumbering.2)Advancedusesincludenestednumberingsystems.3)Challengesincludebrowsercompatibilityandperformanceissues.4)Creativeusesinvolvecust

Modern Scroll Shadows Using Scroll-Driven AnimationsModern Scroll Shadows Using Scroll-Driven AnimationsMay 07, 2025 am 10:34 AM

Using scroll shadows, especially for mobile devices, is a subtle bit of UX that Chris has covered before. Geoff covered a newer approach that uses the animation-timeline property. Here’s yet another way.

Revisiting Image MapsRevisiting Image MapsMay 07, 2025 am 09:40 AM

Let’s run through a quick refresher. Image maps date all the way back to HTML 3.2, where, first, server-side maps and then client-side maps defined clickable regions over an image using map and area elements.

State of Devs: A Survey for Every DeveloperState of Devs: A Survey for Every DeveloperMay 07, 2025 am 09:30 AM

The State of Devs survey is now open to participation, and unlike previous surveys it covers everything except code: career, workplace, but also health, hobbies, and more. 

What is CSS Grid?What is CSS Grid?Apr 30, 2025 pm 03:21 PM

CSS Grid is a powerful tool for creating complex, responsive web layouts. It simplifies design, improves accessibility, and offers more control than older methods.

What is CSS flexbox?What is CSS flexbox?Apr 30, 2025 pm 03:20 PM

Article discusses CSS Flexbox, a layout method for efficient alignment and distribution of space in responsive designs. It explains Flexbox usage, compares it with CSS Grid, and details browser support.

How can we make our website responsive using CSS?How can we make our website responsive using CSS?Apr 30, 2025 pm 03:19 PM

The article discusses techniques for creating responsive websites using CSS, including viewport meta tags, flexible grids, fluid media, media queries, and relative units. It also covers using CSS Grid and Flexbox together and recommends CSS framework

What does the CSS box-sizing property do?What does the CSS box-sizing property do?Apr 30, 2025 pm 03:18 PM

The article discusses the CSS box-sizing property, which controls how element dimensions are calculated. It explains values like content-box, border-box, and padding-box, and their impact on layout design and form alignment.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor