Page 372 - Web Applications (803) Class 11
P. 372

/* Create the parallax scrolling effect */
                     background-attachment: fixed;
                     background-position: center;
                     background-repeat: no-repeat;

                     background-size: cover;
                   }
                   </style>
                   </head>
                   <body>

                   <p>Scroll Up and Down this page to see the parallax scrolling effect.</p>
                   <div class=”parallax”></div>
                   <div style=”height:1000px;background-color:pink;font-size:20px”>

                   <font color=blue>
                   Larry Page and Sergey Brin formally established the Google firm in 1998 to
                   promote  Google  Search,  which  has  grown  to  be  the  most  popular  web-based
                   search engine. A search algorithm, formerly known as “BackRub,” was created
                   in 1996 by Stanford University students Page and Brin.</font>

                   </div></body></html>
                   Output:












































                370   Touchpad Web Applications-XI
   367   368   369   370   371   372   373   374   375   376   377