並び順

ブックマーク数

期間指定

  • から
  • まで

41 - 80 件 / 94件

新着順 人気順

Scrollの検索結果41 - 80 件 / 94件

  • How To Prevent Scrolling The Page On iOS Safari 15

    If we show a modal on iOS we need to prevent events inside the modal from interacting with the page behind the modal. On a previous episode of “Fun with Safari” we could use preventDefault() on the "touchmove" event but on iOS 15 that no longer works. Here we go. To make this work we need iOS to think that there is nothing to scroll. But how do we do this? We set the height of both the html and th

      How To Prevent Scrolling The Page On iOS Safari 15
    • Scroll Fading 101

      Summary: Whether scroll fading is more distracting than usable depends on the following factors: its persistence, responsiveness, and how sparingly it is applied to elements on the page. When used right, this design pattern can improve brand perception, optimize page loading, and make content more digestible. Introduction Scroll fade is a new design pattern. It refers to an animation that is trigg

        Scroll Fading 101
      • Prevent Scroll Chaining With Overscroll Behavior

        Let’s suppose that we have an element with position: fixed. If it has scrolling, you will notice that when you reach the bottom boundary of the element, the browser will continue scrolling on the body element. It’s an unwanted and confusing effect. Thankfully, we can fix that with CSS. In this article, we’ll go through the overscroll-behavior CSS property, what’s the problem it solves, how it work

          Prevent Scroll Chaining With Overscroll Behavior
        • Scroll progress animations in CSS | MDN Blog

          Scroll-linked animations can often add a touch of class to a website, but have long been the preserve of JavaScript. Now a brand new specification is being implemented to enable us to create rich scroll-driven experiences with CSS! When we think of scroll-driven animations, we generally mean one of two things: An animation that occurs as the user scrolls, with the progress of the animation explici

            Scroll progress animations in CSS | MDN Blog
          • Josh.js - A JavaScript library to animate content on page scroll.

            • Angular で超簡単に画面の自動スクロールを実装する方法 - Qiita

              概要 Angular で画面スクロールを実現する方法(いわゆる、画面内アンカーにジャンプする動き) 静的 HTML コンテンツにおいて、画面内スクロールはよく使われる機能だが、Angular はブラウザが要素を探すタイミングが Router によるコンポーネント生成より早いためうまくいかなかった。 スクロールを無理やり実現しようと思ったら、ディレクティブとか頑張ってイジったり、別ライブラリ入れたりと苦労する。 しかし、v6.1 から導入された Router Scroller という機能でスクロールが超簡単に実現できるようになったため、その実装方法の備忘録。 ただし、ヌルヌルっと動くようなアニメーション動作の実装は説明していない。あくまで目的の位置をパッと表示するスクロール処理に関する内容となっている。 前提条件 Angular バージョン 6.1.0 以降のみ対応 RouterModule

                Angular で超簡単に画面の自動スクロールを実装する方法 - Qiita
              • Scroll Snap Events  |  Chrome for Developers

                From Chrome 129 you can use the scrollSnapChange and scrollSnapChanging events from JavaScript. By implementing built-in snap events, the previously invisible snap state will become actionable, at the right time, and always correct. This is not a convenience you had without these events. Before scrollSnapChange, you could use an intersection observer to find what element was crossing the scroll po

                  Scroll Snap Events  |  Chrome for Developers
                • A Practical Introduction to Scroll-Driven Animations with CSS scroll() and view() | Codrops

                  A Practical Introduction to Scroll-Driven Animations with CSS scroll() and view() With just CSS you can add scroll animations that toggle shadows on navbars, reveal images, add scrollytelling, link up carousel elements and much more. Let’s make a CSS scroll animation! No frameworks, no JavaScript. Connect user interaction with real time scroll interaction feedback; helping transition color, positi

                    A Practical Introduction to Scroll-Driven Animations with CSS scroll() and view() | Codrops
                  • 2021 Scroll Survey Report  |  Blog  |  web.dev

                    2021 Scroll Survey Report Stay organized with collections Save and categorize content based on your preferences. Get the 2021 Scroll Survey Report plus words from the Chrome team about how this impacts priorities and plans for Chromium and the web. In April, the Chrome team released a scroll and touch-action survey based on top reported issues from the 2019 MDN Web DNA Report. The 2021 Scroll Surv

                      2021 Scroll Survey Report  |  Blog  |  web.dev
                    • Tracking Scroll Position With React Hooks

                      Good news, everyone! Today we are going to learn, how to use JavaScript scroll event listener to track browser scroll position using hooks — React not so old new feature. Why Do I Need It? Tracking viewport/element scroll position could be vastly useful and for the most part, the only way to enrich your web project with cool dynamic features, like: Dynamic navigation bars that hide/show during scr

                        Tracking Scroll Position With React Hooks
                      • This is a teenager

                        It's 1997. Alex is a 13-year-old Hispanic kid being raised by his dad and step-mom. His family's net worth is less than $2,000. And his parents are neither supportive nor involved in his life. When researchers assessed his home and family life, they determined he was in a fairly risky environment. Over the next 25 years, researchers will continue interviewing Alex regularly. He'll be bullied at sc

                          This is a teenager
                        • 猫でもわかるスクロールイベントパフォーマンス改善ポイント2018 - Qiita

                          TL;DR パフォーマンスの重要性をおさらい Scroll Jank とは 60fpsとリフレッシュレート スクロールイベントを最適化する パフォーマンスの重要性をおさらい 検索エンジンと広告収益事例 GoogleとMicrosoftの検索エンジンチームによって2009年に発表された調査 レスポンスの遅延が招く収益への影響: 0.5秒遅延 → -1.2% 1.0秒遅延 → -2.8% 2.0秒遅延 → -4.3% スクロールイベントは負荷が高い フロントエンドの実装をしたことのある方は、スクロールイベントを使った実装をしたことも多いはず。 スクロールイベントは発生頻度が高いため、負荷が高くなりがちです。スクロールイベントのリスナーは適切に実装しないとScroll Jankの発生・UXの低下を招いてしまいます。 パフォーマンスを出来るだけ下げないような実装事例を紹介していきます。 Scrol

                            猫でもわかるスクロールイベントパフォーマンス改善ポイント2018 - Qiita
                          • スクロールフェードの基礎

                            スクロールフェードがユーザブルというよりも気が散るものになるかどうかは、その持続性、応答性、ページ上の要素への控えめな適用といった要素に左右される。このデザインパターンを正しく用いれば、ブランド認知を向上させ、ページの読み込みを最適化し、コンテンツをより理解しやすくすることができる。 Scroll Fading 101 by Sara Ramaswamy on December 8, 2023 日本語版2024年4月11日公開 はじめに スクロールフェードは新しいデザインパターンだ。これは、スクロールによってトリガーされるアニメーションを指し、ユーザーがページ上の特定の地点までスクロールすると、新しい要素やコンテンツがフェードインしたり、フェードアウトするというものである。 動き(つまり、アニメーション)というものは前注意的に処理される。すなわち、ユーザーの目は自動的にアニメーションに引き

                              スクロールフェードの基礎
                            • enndaruma | 商売繁盛の縁を引き起こす

                              商売繁盛の 縁を引き起こす。We are aGlobal Marketing Agencybased in Japan 繁盛処 縁達磨は「商売繁盛の縁を引き起こす」を使命に掲げた、商売繁盛支援会社です。 中長期的な販売効率を高めるためのブランディング支援、新規顧客獲得に特化した販売促進支援、売り場とコミュニケーションから逆算した商品開発支援の3つの領域を軸に千客万来を実現し、お客様の商売繁盛へ貢献します。 enndaruma Inc. is a marketing agency with a proven track record in three areas: building brand fame to increase long-term sales efficiency, demand generation to drive short-term growth, and produ

                                enndaruma | 商売繁盛の縁を引き起こす
                              • 【全ブラウザ対応】perfect-scrollbar.jsでスクロールバーの色をCSSで自由に変更する。 | web(K)campus|WEBデザイナーのための技術系メモサイト

                                【全ブラウザ対応】perfect-scrollbar.jsでスクロールバーの色をCSSで自由に変更する。 WEBデザイナーのつくるデザインって基本的にブラウザからキャプチャ取ってきたスクロールバーが使われるんですけど、グラフィックデザイナーよりの人がつくるWEBデザインってスクロールバーもご丁寧にサイトカラーに合わせた色合いになってる事があるんですよね。 けっこう昔に、スクロールバーをCSSで装飾するエントリーを書いた事がありましたけど、あれはChromeのみだったんですね。 今回はJavascriptを使って、メジャーどころなブラウザはほとんど同一の装飾を施せる「perfect-scrollbar.js」ってJavascriptのプラグインを使ったので備忘録。 perfect-scrollbar.jsの使い方 まずは、必要なファイルをダウンロード。 GitHubに用意されています。 必要

                                  【全ブラウザ対応】perfect-scrollbar.jsでスクロールバーの色をCSSで自由に変更する。 | web(K)campus|WEBデザイナーのための技術系メモサイト
                                • 指定した要素の位置へスクロールする (JavaScript プログラミング)

                                  JavaScriptで指定した要素の位置にスクロールするコードを紹介します。 概要 JavaScriptで指定した位置にスクロールするには、 document.documentElement.scrollTop にスクロールしたい位置の座標を代入することで指定位置にスクロールできます。指定した要素の位置にスクロールする場合は、あらかじめ、要素の座標を取得して、その値を document.documentElement.scrollTop に代入します。 プログラム コード 下記のHTMLファイルを作成します。 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> <!-- .section{ height:320px; border:1px solid #ff6a00; } --> </

                                    指定した要素の位置へスクロールする (JavaScript プログラミング)
                                  • ScrollyVideo.js

                                    Responsive scrollable videos without obscure video encoding requirements. Compatible with React, Svelte, Vue, and plain HTML.

                                      ScrollyVideo.js
                                    • Intersection Observer API の使い方

                                      Intersection Observer API の使い方 Intersection Observer API は特定の領域を監視して指定した要素がその領域に入ったかどうかを検知してくれる JavaScript の API です。 例えば、スクロールして要素が画面上に現れた時にアニメーションを開始したり、スクロールスパイ(要素が表示されている位置に対応するリンクをハイライトする)などの機能を比較的簡単に実装できます。 スクロールを検出する方法とは異なり、パフォーマンス的にも優れていて、主なモダンブラウザで利用することができます。can i use IntersectionObserver IE など古いブラウザに対応するには polyfill が必要です。 その他の Observer のページ ResizeObserver の使い方 MutationObserver の使い方 Inter

                                      • Fixing Smooth Scrolling & Page Search (updated!)

                                        Yesterday, as I was browsing my Twitter timeline, a tweet from Chris Coyier popped up, in which he mentioned feedback he got for one of his CSS Tricks experiments. It went as follows: Anecdotal thing: when I had this on @CSS, I had SO MANY reports of people annoyed that when they did "find on page" and ⬆️⬇️ through the results, the smooth scrolling was slow and annoying. Unfortunately, you can't c

                                          Fixing Smooth Scrolling & Page Search (updated!)
                                        • ページのセクションを分割した感じにできるスクロールエフェクト:phpspot開発日誌

                                          Revealing Hero Effect in CSS and JavaScript | CodyHouse ページのセクションを分割した感じにできるスクロールエフェクト 1ページなのですが、複数のページで構成されている風にアニメーションできて今風のページが作れるデモです 関連エントリ 超カッコいいスクロールエフェクト実装「lax.js」 スクロール量をページトップのプログレスバーで表示できる「scrollpup.js」 WebGLを使ったスクロールでパーティクルがアニメーションするサンプル

                                          • CSS Scroll Snap

                                            How often have you wished if there was a CSS feature that made it easy to create a scrollable container? CSS scroll snap can do that. In my early days of front-end development, I relied on Javascript plugin to create slider components. Sometimes, we need a simple way of quickly making an element as a scrollable container. We can do that, thanks to CSS scroll snap. In this article, I will walk you

                                              CSS Scroll Snap
                                            • Solved by CSS Scroll-Driven Animations: Detect if an element can scroll or not

                                              Because Scroll-Driven Animations are only active when there is scrollable overflow, it is possible to use them as a mechanism to detect if an element can scroll or not. Mix in a Space Toggle or a Style Query, and you’ve got all you need to selectively style an element based on it being scrollable or not. ~ The Code If you’re here for just the code, here it is: @keyframes detect-scroll { from, to {

                                                Solved by CSS Scroll-Driven Animations: Detect if an element can scroll or not
                                              • 【JS】スクロールしたら要素を表示させる | WEB-DEN

                                                今回はスクロールすると表示されるボタンの作り方を解説します。 Web制作などでページをある程度スクロールしたらTOPに戻るボタンをふわっと表示させたい、 みたいな要望って結構あると思います。(実際に制作した経験あります) この記事ではそういったスクロールに応じて表示される要素の作り方を、 jQueryを一切使わず、純粋なJavaScriptのみで対応する方法をお伝えします。 できるだけ丁寧な解説にしてみましたので最後まで読んでいただけるとありがたいです。

                                                  【JS】スクロールしたら要素を表示させる | WEB-DEN
                                                • Re:>>> Basic Line | アジュバンコスメジャパン

                                                  毎日のシャンプーとトリートメントによって やさしくケアしながらも 本来のすこやかさを取り戻すことを コンセプトとした5種のヘアケアライン。 髪や地肌の状態に合わせて選べる5種で 仕上がり感思いのままに。

                                                    Re:>>> Basic Line | アジュバンコスメジャパン
                                                  • Twitter is buying Scroll, the subscription service that removes ads from news sites

                                                    Twitter’s acquisition spree continues today with Scroll, a $5-a-month subscription service that removes ads from participating news sites (including The Verge). Twitter is working on building out a new kind of subscription plan that will include Scroll, the recently acquired Revue newsletter service, and other homegrown Twitter services. In a blog post announcing the deal, Scroll CEO Tony Haile sa

                                                      Twitter is buying Scroll, the subscription service that removes ads from news sites
                                                    • GitHub - tholman/elevator.js: Finally, a "back to top" button that behaves like a real elevator.

                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                        GitHub - tholman/elevator.js: Finally, a "back to top" button that behaves like a real elevator.
                                                      • Control Pixel Art Sprites With CSS Scroll-Driven Animations

                                                        These fancy, new, CSS scroll-driven animations are proving to be pretty darn powerful. I found Bramus' concept of using them to detect scroll direction intriguing, and after experimenting a bit, discovered that detecting multiple axes allows you to directionally control an image sprite! Without JavaScript! This involves creating stepped sprite animations for each direction and running them when th

                                                        • 実装簡単!スマホにも対応のセクションスクロールができるスクリプト【Scrollify.js】

                                                          section要素やdiv要素が垂直に配置された縦長ページをスクロールしたときに、各セクションを画面のトップ位置にスナップさせるjQueryのプラグイン「Scrollify.js」のオプションなど細かく解説します。 パソコンのホイール操作はもちろん、スマートフォンやタブレットなどのタッチ操作にも対応していて、とても便利です。 また、セクションがウィンドウの表示領域に収まらなくても、セクション内でスクロールができるというのも、魅力の1つです。

                                                            実装簡単!スマホにも対応のセクションスクロールができるスクリプト【Scrollify.js】
                                                          • https://www.midjourney.com/showcase

                                                            • puppeteer-autoscroll-down

                                                              Handle infinite scroll on websites with puppeteer Small puppeteer tool which makes your parsing experience a little bit better Usage size - Number of pixels to scroll on each step [default: 250] delay - Delay in ms after each completed scroll step [default: 100] stepsLimit - Max number of steps to scroll [default: null] const puppeteer = require('puppeteer') const { scrollPageToBottom } = require(

                                                                puppeteer-autoscroll-down
                                                              • Scroll-Driven State Transfer

                                                                Scroll-Driven State TransferIn my fourth article about scroll-driven animations, I explore how we can transfer the state of one element to a completely different place on a page by connecting them with a unique identifier in CSS via a timeline-scope. Introduction Today’s technique is a variation of an effect that I previously demonstrated a few times: “Future CSS: Anchor Positioning” from earlier

                                                                • CSSで1行で簡単にスムーススクロールを実装できる「scroll-behavior」プロパティ

                                                                  ページ内リンクをクリックしたときに、ページがキレイにスクロールしながら移動するいわゆる「スムーススクロール(スムーズスクロールと言う人もいますが、英語だとSmooth Scrollなので、この記事ではスムーススクロールに統一します)」。 ひと昔前だとjQueryを活用したり、window.scrollを使ったりが必要でしたが、CSSでも実現ができます。 scroll-behavior: smooth;を指定してあげると、ページ内リンクをクリックしたときにスムーススクロールになります。 1行追加するだけなので非常にラクですね。 html { scroll-behavior: smooth; }実際のサンプルは下記になります。 See the Pen scroll-behavior: smooth; by Masakazu Saito (@31mskz10) on CodePen. ちゃんとペ

                                                                    CSSで1行で簡単にスムーススクロールを実装できる「scroll-behavior」プロパティ
                                                                  • Solved by CSS Scroll-Driven Animations: Style an element based on the active Scroll Direction and Scroll Speed

                                                                    Recording of the BADASS Demo Scroll-Driven Animations can be used for more than driving an animation by scroll. In this post, I share how you can use Scroll-Driven Animations to detect the Scroll Velocity a user is actively scrolling in. That means that using only CSS you can style an element based on whether the user is scrolling (or not scrolling), the direction they are scrolling in, and the sp

                                                                      Solved by CSS Scroll-Driven Animations: Style an element based on the active Scroll Direction and Scroll Speed
                                                                    • HTML/JavaScriptでページ最上部からの位置を取得する方法

                                                                      こんにちは、kz_moritaです。 最近はVue.js / Nuxt.js あたりで Web フロントを書いたりしています。 今回は、ページの最上部からある特定のDOMの位置座標を取得するのにちょっとつまづいたため、そのことについてまとめておきます。 試した方法 以下の二種類の方法を試しました。 HTMLElement.offsetTop Element.getBoundingClientRect().top + window.pageYOffset 結論から言うと、ページの最上部からの位置を取得する仕様は2つ目の方法で実現することができました。 HTMLElement.offetTop HTMLElement.offsetTopの仕様は以下のサイトに詳しく書いています。 https://developer.mozilla.org/ja/docs/Web/API/HTMLElement/

                                                                        HTML/JavaScriptでページ最上部からの位置を取得する方法
                                                                      • Memorize Scroll Position Across Page Loads | CSS-Tricks

                                                                        Hakim El Hattab tweeted a really nice little UX enhancement for a static site that includes a scrollable sidebar of navigation. 👀 If you've got a static site with a scrollable sidebar, it really helps to memorize the scroll position across page loads. (left is default, right memorized) pic.twitter.com/bLgtILP1JP — Hakim El Hattab (@hakimel) May 18, 2020 The trick is to throw the scroll position i

                                                                          Memorize Scroll Position Across Page Loads | CSS-Tricks
                                                                        • How to create a stacking cards effect | CodyHouse

                                                                          Stacking Cards Effect In this tutorial, we will take a look at how to create a stacking cards effect, using the CSS sticky position and the Intersection Observer API. Dependencies CodyFrame (CodyHouse front-end framework) Tutorial The basic idea is: we create a list of card elements that become fixed on scroll. When a card is fixed, we scale it down and translate it to create the stack. This tutor

                                                                            How to create a stacking cards effect | CodyHouse
                                                                          • 映画『スクロール』古川琴音インタビュー「観る人によって、観る状況によって、心にフックがかかる場面が違う」|ガジェット通信 GetNews

                                                                            映画『スクロール』古川琴音インタビュー「観る人によって、観る状況によって、心にフックがかかる場面が違う」 YOASOBIの大ヒット曲「ハルジオン」の原作者としても知られる橋爪駿輝・原作小説「スクロール」(講談社文庫) が北村匠海×中川 大志W主演で映画化。2月3日(金)より全国公開中です。 理想と現実のギャップに悩む4人の若者たちが社会や自分自身と必死に向き合う姿をリアルに描く本作で、主人公「僕」に共鳴し、特別な自分になりたいと願う「私」を演じた古川琴音さんに、作品の魅力についてお話を伺いました。 【ストーリー】 学生時代に友だちだった〈僕〉とユウスケのもとに、友人の森が自殺したという報せが届く。就職はしたものの上司からすべてを否定され、「この社会で夢など見て はいけない」とSNSに想いをアップすることで何とか自分を保っていた〈僕〉と、毎日が楽しければそれでいいと刹那的に生きてきたユウスケ

                                                                              映画『スクロール』古川琴音インタビュー「観る人によって、観る状況によって、心にフックがかかる場面が違う」|ガジェット通信 GetNews
                                                                            • jQueryを使った動的ウェブデザイン:スクロールでコンテンツエリアをビジュアルエリアにオーバーレイ表示する方法|DAD UNION – エンジニア同盟

                                                                              ウェブデザインとフロントエンド開発の世界は常に進化しています。今回は、ブラウザサイズに応じて動的に変化するビジュアルエリアを作成し、ユーザー体験を向上させる方法をご紹介します。jQueryを使ったシンプルなテクニックで、サイトの見た目と機能性を格段に向上させましょう。 CSSによるビジュアルエリアとコンテンツエリアのスタイリング このセクションでは、.headArea(ビジュアルエリア)と.contentsArea(コンテンツエリア)のCSSスタイリングについて詳しく解説します。 自分のプロジェクトに合わせてカスタマイズできるように、基本的なスタイル指南と実用的なヒントを提供します。 <style> body { margin: 0; padding: 0; font-size: 18px; text-align: center; width:100%; margin:0px; paddi

                                                                                jQueryを使った動的ウェブデザイン:スクロールでコンテンツエリアをビジュアルエリアにオーバーレイ表示する方法|DAD UNION – エンジニア同盟
                                                                              • [jQuery]スクロールバーのデザインと実装方法と注意点 - 超軽量スクリプト Perfect Scrollbar - Fly higher! Sky is the limit!

                                                                                一昔前だとスクロールバーのデザインモックを見ただけで吐きそうになっていましたが、 今では便利なプラグインとCSS3といった技術を用いて比較的容易に実装できるようになりました。 本記事では、超軽量スクリプト Perfect Scrollbarを用いたデザイン性に富んだスクロールバーの実装方法を紹介したいと思います。 Perfect Scrollbarについて Perfect Scrollbarについては、3年くらい前にcoliss様のサイトで紹介されていますので そちらをご参照ください。 http://coliss.com/articles/build-websites/operation/javascript/jquery-plugin-perfect-scrollbar.html ダウンロードはこちら perfect-scrollbar 実装方法 準備するもの jQuery Perfec

                                                                                  [jQuery]スクロールバーのデザインと実装方法と注意点 - 超軽量スクリプト Perfect Scrollbar - Fly higher! Sky is the limit!
                                                                                • 意図していない横スクロールの原因を一瞬で特定する方法

                                                                                  ウェブサイト制作時。初心者のかたにありがちですが、「知らないうちに横スクロールバーが発生したけど消し方がわからない!」という問題があります。 そんな意図しない横スクロールが発生しているとき、問題となっている要素を一瞬で特定するテクニックを紹介します。 「CSSを使う方法」と「JavaScriptを使う方法」の2種類があります。 「JavaScriptを使う方法」は具体的にはブラウザのデベロッパーツールのConsoleを使う方法になります。 問題の原因と解決方法は? そもそもブラウザで意図していない横スクロールが発生するのは、CSSで横幅の計算を間違えて表示領域を超えてしまうことが原因です。 多くはwidthをpxで指定していたり、marginとpaddingの兼ね合い、table要素の横幅問題のいずれかでしょう。 各要素のアウトラインを視覚的にわかりやすく表示させれば問題となっている要素を

                                                                                    意図していない横スクロールの原因を一瞬で特定する方法