Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

scroll

body {
  margin: 0;
  padding: 0;
  background: url(https://occ-0-325-395.1.nflxso.net/dnm/api/v6/6AYY37jfdO6hpXcMjf9Yu5cnmO0/AAAABaKr-dQAdVTt7fuGCgzntgBBrFce2DMW72dF86eO7EnXbFZvzmX2TPnQAg3HwAsvt7ZnDnP0nwuHOtPwpWGGOE22fXq2.webp?r=847) top/contain no-repeat;
}

nav {
  position: -webkit-sticky;
  position: sticky;
  /* sticky or fixed are fine */
  position: fixed;
  top: 0;
  height: 69px;
  width: 100%;
  background: linear-gradient(to bottom, #000, #0003 70%,#0000); /* background when scroll is in the top */
  transition: background .5s; /* control how smooth the background changes */
}

nav.scrolled {
  background: #0a0a0a;
}

main {
  height: 200vh;
}
Comment

scroll

<div class="h-screen flex">
  <!-- Fixed sidebar -->
  <div class="bg-gray-600 w-64">
    <!-- Sidebar content -->
  </div>
  <!-- Scroll wrapper -->
  <div class="flex-1 flex overflow-hidden">
    <!-- Scrollable container -->
    <div class="flex-1 overflow-y-scroll">
      <!-- Your content -->
    </div>
  </div>
</div>
Comment

scroll

<div class="h-screen flex">
  <!-- Fixed sidebar -->
  <div class="bg-gray-600 w-64">
    <!-- Sidebar content -->
  </div>
  <!-- Scroll wrapper -->
  <div class="flex-1 flex overflow-hidden">
    <!-- Scrollable container -->
    <div class="flex-1 overflow-y-scroll">
      <!-- Your content -->
    </div>
  </div>
</div>
Comment

scroll

class Scroll {
  constructor(routerEvent: NavigationEnd, position: [number, number], anchor: string)
  routerEvent: NavigationEnd
  position: [...]
  anchor: string | null
  toString(): string
}
Comment

PREVIOUS NEXT
Code Example
Java :: Caused by: java.lang.ClassNotFoundException: 
Java :: java package 
Java :: what is method overriding in java 
Java :: query spring boot 
Java :: Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment. 
Java :: if statement with string java 
Java :: split each character in a string (java) 
Java :: Jlabel icon 
Java :: convert long to localdatetime java 
Java :: print treeset java 
Java :: calculate number of weeks between two dates 
Java :: java @override 
Java :: searchview android example recyclerview 
Java :: string program to calculate number of characters in a string java 
Java :: convert array to arraylist 
Java :: for var i = 0 
Java :: Mila Kunis 
Java :: ticket sales java program 
Java :: java streams example 
Sql :: find sp name by text in sql server 
Sql :: find column in all stored procedures sql server 
Sql :: Failed to stop mysqld.service: Unit mysqld.service not loaded. 
Sql :: check database name oracle 
Sql :: mysql dump all databases 
Sql :: sql drop table if exists 
Sql :: how to change potgress password 
Sql :: delete mysql from mac 
Sql :: sql server list table sizes 
Sql :: how to open postgresql in mac 
Sql :: no data found oracle 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =