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

提供: yonewiki
移動: 案内, 検索
(アニメーションマーカー)
(アニメーションマーカー)
151行: 151行:
 
<script>
 
<script>
 
$<span>(</span>window).scroll(function (){
 
$<span>(</span>window).scroll(function (){
$(".marker-animation").each(function(){
+
&nbsp;&nbsp; $(".marker-animation").each(function(){
  var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
+
&nbsp;&nbsp; var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
  var scroll = $(window).scrollTop(); //スクロールの位置を取得
+
&nbsp;&nbsp; var scroll = $(window).scrollTop(); //スクロールの位置を取得
  var windowHeight = $(window).height(); //ウインドウの高さを取得
+
&nbsp;&nbsp; var windowHeight = $(window).height(); //ウインドウの高さを取得
  if (scroll &gt; position - windowHeight){ //スクロール位置が要素の位置を過ぎたとき
+
&nbsp;&nbsp; if (scroll &gt; position - windowHeight){ //スクロール位置が要素の位置を過ぎたとき
&nbsp;&nbsp$(this).addClass('active'); //クラス「active」を与える
+
&nbsp;&nbsp$(this).addClass('active'); //クラス「active」を与える
 
  }
 
  }
 
});
 
});
168行: 168行:
  
 
.marker-animation {
 
.marker-animation {
&nbsp;&nbspbackground-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;&nbspbackground-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;&nbspbackground-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;&nbspbackground-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;&nbspbackground-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;&nbspbackground-repeat: repeat-x;
+
&nbsp;&nbsp;background-repeat: repeat-x;
&nbsp;&nbspbackground-size: 200% .8em;
+
&nbsp;&nbsp;background-size: 200% .8em;
&nbsp;&nbspbackground-position: 0 .5em;
+
&nbsp;&nbsp;background-position: 0 .5em;
&nbsp;&nbsptransition: all 2s ease;
+
&nbsp;&nbsp;transition: all 2s ease;
&nbsp;&nbspfont-weight: bold;
+
&nbsp;&nbsp;font-weight: bold;
 
}
 
}
  

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



個人用ツール
名前空間

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