Changeset 189835 in webkit


Ignore:
Timestamp:
Sep 15, 2015 6:14:29 PM (9 years ago)
Author:
Wenson Hsieh
Message:

Add anchor tags for scroll snapping examples.

  • demos/scroll-snap/index.html: Added anchor tags.
Location:
trunk/Websites/webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/webkit.org/ChangeLog

    r189757 r189835  
     12015-09-15  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Add anchor tags for scroll snapping examples.
     4
     5        * demos/scroll-snap/index.html: Added anchor tags.
     6
    172015-09-14  Wenson Hsieh  <wenson_hsieh@apple.com>
    28
  • trunk/Websites/webkit.org/demos/scroll-snap/index.html

    r189755 r189835  
    217217        <p id="subtext">The following examples are overflow-scrolling <code>div</code>s. In the second, third and fourth examples, the <span>blue</span> cross represents the location of each container&rsquo;s scroll snap destination.</p>
    218218        <!-- Normal scrolling container (no snapping) -->
     219        <a name="scroll-normal"></a>
    219220        <h3 style="margin-top: 5vh;">This first container does not have any scroll snapping behavior.</h3>
    220221        <div class="container">
     
    250251
    251252        <!-- Simple scroll snapping container (using repeat) -->
     253        <a name="scroll-snap-1"></a>
    252254        <h3>This second container shows what basic scroll snapping can do for us.</h3>
    253255        <div class="container" id="snap-scroll-container">
     
    286288
    287289        <!-- Scroll snapping container using coordinates -->
     290        <a name="scroll-snap-2"></a>
    288291        <h3>This next container snaps to elements of different sizes when scrolling.</h3>
    289292        <div class="container" id="snap-scroll-container-coordinates">
     
    345348
    346349        <!-- Centered scroll snapping container using coordinates -->
     350        <a name="scroll-snap-3"></a>
    347351        <h3>Here, we snap elements of different sizes to the center of the container.</h3>
    348352        <div class="container" id="snap-scroll-container-coordinates-centered">
     
    404408
    405409        <!-- Centered scroll snapping container in 2D -->
     410        <a name="scroll-snap-4"></a>
    406411        <h3>This container shows centered scroll snapping in a 2D grid.</h3>
    407412        <div class="container" id="snap-scroll-container-2D">
     
    417422
    418423        <!-- Centered scroll snapping container in 2D, rotated -->
     424        <a name="scroll-snap-5"></a>
    419425        <h3>This example takes the 2D scroll snapping grid above and rotates it by 30 degrees.</h3>
    420426        <div class="container" id="snap-scroll-container-2D-rotated">
Note: See TracChangeset for help on using the changeset viewer.