Python matplotlibを使って学ぶ統計処理 正規分布 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(アニメーションマーカー)
(アニメーションマーカー)
149行: 149行:
  
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
 +
 
<script>
 
<script>
 +
 
$<span>(</span>window).scroll(function (){
 
$<span>(</span>window).scroll(function (){
 +
 
&nbsp;&nbsp; $(".marker-animation").each(function(){
 
&nbsp;&nbsp; $(".marker-animation").each(function(){
 +
 
&nbsp;&nbsp; var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
 
&nbsp;&nbsp; var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
 +
 
&nbsp;&nbsp; var scroll = $(window).scrollTop(); //スクロールの位置を取得
 
&nbsp;&nbsp; var scroll = $(window).scrollTop(); //スクロールの位置を取得
 +
 
&nbsp;&nbsp; var windowHeight = $(window).height(); //ウインドウの高さを取得
 
&nbsp;&nbsp; var windowHeight = $(window).height(); //ウインドウの高さを取得
 +
 
&nbsp;&nbsp; if (scroll &gt; position - windowHeight){ //スクロール位置が要素の位置を過ぎたとき
 
&nbsp;&nbsp; if (scroll &gt; position - windowHeight){ //スクロール位置が要素の位置を過ぎたとき
 +
 
&nbsp;&nbsp$(this).addClass('active'); //クラス「active」を与える
 
&nbsp;&nbsp$(this).addClass('active'); //クラス「active」を与える
 +
 
  }
 
  }
 +
 
});
 
});
 +
 
});
 
});
 +
 
&lt;/script&gt;
 
&lt;/script&gt;
 +
 
&lt;style type= "text/css"&gt;
 
&lt;style type= "text/css"&gt;
 +
  
 
.marker-animation.active{
 
.marker-animation.active{
 +
 
&nbsp;&nbspbackground-position: -100% .5em;
 
&nbsp;&nbspbackground-position: -100% .5em;
 +
 
}
 
}
  
 
.marker-animation {
 
.marker-animation {
 +
 
&nbsp;&nbsp;background-image: -webkit-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: -webkit-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 +
 
&nbsp;&nbsp;background-image: -moz-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: -moz-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 +
 
&nbsp;&nbsp;background-image: -ms-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: -ms-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: -o-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: -o-linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 +
 
&nbsp;&nbsp;background-image: linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 
&nbsp;&nbsp;background-image: linear-gradient(left, transparent 50%, rgb(255,250,153) 50%);
 +
 
&nbsp;&nbsp;background-repeat: repeat-x;
 
&nbsp;&nbsp;background-repeat: repeat-x;
 +
 
&nbsp;&nbsp;background-size: 200% .8em;
 
&nbsp;&nbsp;background-size: 200% .8em;
 +
 
&nbsp;&nbsp;background-position: 0 .5em;
 
&nbsp;&nbsp;background-position: 0 .5em;
 +
 
&nbsp;&nbsp;transition: all 2s ease;
 
&nbsp;&nbsp;transition: all 2s ease;
 +
 
&nbsp;&nbsp;font-weight: bold;
 
&nbsp;&nbsp;font-weight: bold;
 +
 
}
 
}
  

2020年4月16日 (木) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス