পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Tuesday, February 28, 2017

jQuery - Page Pilling

pagePiling.js is a jQuery plug-in for 'piling' your layout sections over one another and accessing them by scrolling.
A Simple of theming example as shown below
<!DOCTYPE html>
<html xmlns = "https://www.w3.org/1999/xhtml">

   <head>
      <meta http-equiv = "Content-Type" content = "text/html; charset = utf-8" />
      <link rel = "stylesheet" type = "text/css" 
         href = "https://fonts.googleapis.com/css?family=Lato:300,400,700" />
   
      <link rel = "stylesheet" type = "text/css" 
         href = "/jquery/src/pagepilling/jquery.pagepiling.css" />
   
      <link rel = "stylesheet" type = "text/css" 
         href = "/jquery/src/pagepilling/examples.css" />

      <script 
         src = "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

      <script type = "text/javascript" 
         src = "/jquery/src/pagepilling/jquery.pagepiling.min.js"></script>
  
      <script type = "text/javascript">
         $(document).ready(function() {
   
            $('#pagepiling').pagepiling({
               menu: '#menu',
               anchors: ['page1', 'page2', 'page3', 'page4'],
               sectionsColor: ['#bfda00', '#2ebe21', '#2C3E50', '#51bec4'],
     
               navigation: {
                  'position': 'right',
                  'tooltips': ['Page 1', 'Page 2', 'Page 3', 'Pgae 4']
               },
     
               afterRender: function(){
                  //playing the video
                  $('video').get(0).play();
               }
            });
    
         });
      </script>

      <style>
     
         .section {
            text-align:center;
         }

         #myVideo {
            position: absolute;
            z-index: 4;
            right: 0;
    
            bottom: 0;
            top:0;
            right:0;
            width: 100%;
            height: 100%;
    
            background-size: 100% 100%;
            background-color: black; /* in case the video doesn't fit the whole page*/
            background-image: /* our video */;
            background-position: center center;
            background-size: contain;
            object-fit: cover; /*cover video background */
         }

  
         #section1 .layer {
            position: absolute;
            z-index: 5;
            width: 100%;
            left: 0;
            top: 43%;
            height: 100%;
         }

         #section1 h1 {
            color:#fff;
         }

         #infoMenu li a {
            color: #fff;
         }

      </style>
   </head>
 
   <body>
 
      <ul id = "menu">
         <li data-menuanchor = "page1" class = "active">
            <a href = "#page1">Page 1</a></li>
         <li data-menuanchor = "page2"><a href = "#page2">
            Page 2</a></li>
         <li data-menuanchor = "page3"><a href = "#page3">
            Page 3</a></li>
      </ul>

      <div id = "pagepiling">
  
         <div class = "section" id = "section1">
   
            <video autoplay loop muted id = "myVideo">
               <source src = "imgs/flowers.mp4" type = "video/mp4">
               <source src = "imgs/flowers.webm" type = "video/webm">
            </video>
   
         </div>
   
         <div class = "section" id = "section2">
   
            <div class = "intro">
               <h1>No limits</h1>
               <p>Anything is possible with Tutorialspoint</p>
            </div>
   
         </div>
   
         <div class = "section" id = "section4">
   
            <div class = "intro">
               <h1></h1>
               <p>Simple Easy Learning</p>
            </div>
    
         </div>
   
      </div>

   </body>
 
</html>
This should produce following result −

No comments:

Post a Comment