<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yachin29</author_name>
  <author_url>https://blog.hatena.ne.jp/yachin29/</author_url>
  <blog_title>WEBサイト制作の勉強</blog_title>
  <blog_url>https://yachin29.hatenablog.com/</blog_url>
  <categories>
    <anon>jQuery</anon>
  </categories>
  <description>スクロールイベント 今まで授業では、要素が読み込まれたら動くという「$function」とクリックしたら動くという「on.click」イベントの2つを主にやってきましたが、今回はそれに加えてウィンドウをスクロールしたら動く、「スクロールイベント」をやってみましょう。スクロールイベントの場合、対象となる要素は必ず「$window」です。 $(function() { $(window).scroll(function() { //画面がスクロールされたら、この中の命令が実行される $('.box').addClass('scroll'); }); }); ただし、このままだと1pxスクロールした…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyachin29.hatenablog.com%2Fentry%2F2019%2F08%2F23%2F005807&quot; title=&quot;スクロールイベントの使い方 - WEBサイト制作の勉強&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-23 00:58:07</published>
  <title>スクロールイベントの使い方</title>
  <type>rich</type>
  <url>https://yachin29.hatenablog.com/entry/2019/08/23/005807</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
