How to make the effect of a div that covers an other div when scrolling?

How to make the effect of a div that covers an other div when scrolling?

Content Index :

How to make the effect of a div that covers an other div when scrolling?
Tag : jquery , By : Gipsy.D
Date : November 24 2020, 01:01 AM

I hope this helps . This is called parallax scrolling.
There are jQuery plugins available that do this for you:

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

How to make menu button with vertical scrolling effect

Tag : javascript , By : glisignoli
Date : March 29 2020, 07:55 AM
wish help you to fix your issue For some reason you can't set a negative value. Try this: http://jsfiddle.net/9G6C2/2/
All I've changed is
$("#home").stopBG(0, 12, 300);

How can i make a smooth scrolling effect

Tag : jquery , By : JulianCT
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Hi guys iam currently making a new portfolio and i encoutered a nice scrolling effect on the following website. , If you search the script in the devtools for smoothscroll you find:
Plugin Name:    smoothScroll for jQuery.
Written by:     Okler Themes - (http://www.okler.net)
Version:        3.1.0

Swift iOS - How to make blurred effect that covers TabBarController and NavigationController

Tag : ios , By : GunnarHafdal
Date : March 29 2020, 07:55 AM
like below fixes the issue It's doing exactly what you ask right now, which is covering the entire view. That view, however, is of a child UIViewController, which has its real estate managed by a parent view controller. Only this parent has its view covering the entire screen. So in the case of embedding in a UINavigationController, you'd do instead:
blurEffectView.frame = self.navigationController!.view.bounds

Make a scrolling effect works with click as well

Tag : javascript , By : Pip
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further You would like the menu to behave the same way when clicked and when the user scrolls the page.
When you click on a menu item the page should scroll to a given div and the menu should react accordingly.
 //IIF to avoid polluting global namespace
 (function() {

   $(function() {
     //S1 - add click handler to each menu item
     $("#pointer > a").each(function(k, v) {
       $(v).click(function(e) {
         //S2 - build target div id using hash from clicked menu item
         var targetId = 'target-' + e.originalEvent.currentTarget.hash.slice(1);
         //S3 - scroll document to top offset of target div
         $('body').scrollTop($('#' + targetId).offset().top);
         //S4 - apply menu rendering effects _without_ taking deltaY into account

     $(window).on('wheel', function(e) {
   //no deltaY since we're not scrolling
   function myEffectsClick(e) {
       var windowScrollTop = $(this).scrollTop();
       //'reset' menu as if we had scrolled up
       //add any applicable effects based on current position
     //apply effects when scrolling

   function myEffectsScroll(e) {
     var delta = e.originalEvent.deltaY;
     var windowScrollTop = $(this).scrollTop();

     if (delta > 0) {
     } else {

   function scrollUp(windowScrollTop) {
     if (windowScrollTop < 350) {
       $(".two").css("border-top-color", "#999999").animate({
         width: '25px'
       }, 100);
     if (windowScrollTop < 750) {
       $(".three").css("border-top-color", "#999999").animate({
         width: '25px'
       }, 100);
     if (windowScrollTop < 1150) {
       $(".four").css("border-top-color", "#999999").animate({
         width: '25px'
       }, 100);
     if (windowScrollTop < 1500) {
       $(".one, .two, .three, .four, .five").css("border-top-color", "#fff");
         width: '25px'
       }, 100);
       $("body").css('background-color', '#003333');

   function scrollDown(windowScrollTop) {
     if (windowScrollTop > 0) {
       $(".one").css("border-top-color", "#fff").animate({
         width: '50px'
       }, 100);
     if (windowScrollTop > 350) {
       $(".two").css("border-top-color", "#fff").animate({
         width: '50px'
       }, 100);
     if (windowScrollTop > 750) {
       $(".three").css("border-top-color", "#fff").animate({
         width: '50px'
       }, 100);
     if (windowScrollTop > 1150) {
       $(".four").css("border-top-color", "#fff").animate({
         width: '50px'
       }, 100);
     if (windowScrollTop > 1500) {
       $(".one, .two, .three, .four, .five").css("border-top-color", "#999999");
         width: '50px'
       }, 100);
       $("body").css('background-color', '#fff');

body {
  background-color: #003333;
#pointer {
  position: fixed;
  top: 50%;
  left: 50px;
#pointer span {
  display: block;
  height: 13px;
  width: 25px;
  border-top-color: #999999;
  border-top-style: solid;
  border-top-width: 1px;
div.scroll-target {
  height: 400px;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<div style="height:200px">Test.</div>
<div id="pointer">
  <a href="#first"><span class="one"></span></a>
  <a href="#second"><span class="two"></span></a>
  <a href="#third"><span class="three"></span></a>
  <a href="#fourth"><span class="four"></span></a>
  <a href="#areaTest"><span class="five"></span></a>
  <div id="target-first" class="scroll-target">
  <div id="target-second" class="scroll-target">
  <div id="target-third" class="scroll-target">
  <div id="target-fourth" class="scroll-target">
<div style="height:2000px">So that we can scroll...</div>

How to make a smooth scrolling effect using javascript

Tag : javascript , By : uxn
Date : March 29 2020, 07:55 AM
it should still fix some issue I've been looking everywhere and I cannot find an answer for this specific need. , Try Using Nice Scroll
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.7.6/jquery.nicescroll.min.js"></script>

    mousescrollstep: 40, // scrolling speed with mouse wheel (pixel)
Related Posts Related QUESTIONS :
  • JQuery UI Tabs caching
  • Drag and Drop into another div and move in the div only using jquery
  • Links in rounded boxes? In ALL browsers (yep included IE8)
  • How to change the content of the Span using jQuery?
  • jQuery; combine user click and :checked
  • jQuery - Finding the element index relative to its container
  • jQuery .each() function. Resetting the index?
  • jQuery storing settings
  • Why does asp.net mvc form submits itself on button clicks when javascript function error?
  • Linking to non-home panel in JQTouch site
  • How to Edit jQuery Table Using CSS
  • Jquery hover triggers "mouse leave" without cursor leaving
  • DELETE http://localhost:8000/product/[object%20Object] 500 (Internal Server Error)
  • Comparing two string arrays and returning key of not found element using jquery
  • using jquery to change list items is changing all list items, when i want to only change one list item
  • Sending a Json data from my html page to a php
  • Click function to search a specific element in a Json object
  • Bootstrap 4 - Progress Bar Progression
  • how to deleted item materialize chips
  • jQuery - Hide non-active elements using filter()
  • Adding style to string table is not working
  • Github merge multiple files into single compressed master file
  • Replace characters in a field on page load
  • Unable to send data from Form to SQL database
  • If all divs have same style, remove element
  • How to click a jQuery Dialog button in TestCafe
  • Cannot reinitialise DataTable with Angular Datatable
  • How to add Class active on Click in Navbar
  • how to call fail method into jquery.get/post success method?
  • Slider with tabs
  • Jquery Get parent element from data function
  • Ho to put a new line in <p> tag in my jquery?
  • How can I use a text value as a mathematical operator?
  • DataTable columns values showing Only DefaultContent
  • JQuery select dynamically added elements
  • How to change an image source on hover?
  • How to bind jquery event to dynamically added multiple DOM elements?
  • How to get td values and store in array using Jquery?
  • How to add handler to dinamically created tr in JQuery?
  • How to Covert Html to PDF in Jquery?
  • Jquery before() and after() used to create a <div> container not inserting closing tags in after()
  • I want to delete previously added class
  • Open html page in same window after clicking on navlink
  • Datatable is not working when I populate table using smarty
  • How to change image based on the offset top of the content div
  • Find the index of table column with specific id
  • How to return value of $(window).resize()
  • How to optimize adding numerous elements dynamically into web page
  • Content slide down on top of page?
  • How to write if statement for when a specified option is selected in select tag in JQuery
  • HTML tags remove from textarea using jQuery
  • ShareThis not display properly when initially hidden
  • jquery - Bind datepicker event
  • How can I cause an element to move on mouse scroll using transform matrix?
  • How to add Custom summaries for autogenerated colums?
  • How to update table row with data from an array using jQuery
  • Cannot get the element in jQuery
  • How to search for two values in array at the same time?
  • Creating a floating document property control that is available in all tabs of Spotfire dashboard
  • Add a "wrapper" div tag to wrap other html div tags?
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com