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

提供: yonewiki
移動: 案内, 検索
(アニメーションマーカー)
(アニメーションマーカー)
213行: 213行:
 
   });
 
   });
 
   $(".marker-animation3").each(function(){
 
   $(".marker-animation3").each(function(){
 +
    var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
 +
    var scroll = $(window).scrollTop(); //スクロールの位置を取得
 +
    var windowHeight = $(window).height(); //ウインドウの高さを取得
 +
    if (scroll > position - windowHeight){ //スクロール位置が要素の位置を過ぎたとき
 +
      $(this).addClass('active'); //クラス「active」を与える
 +
    }
 +
  });
 +
  $(".marker-animation4").each(function(){
 
     var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
 
     var position = $(this).offset().top; //ページの一番上から要素までの距離を取得
 
     var scroll = $(window).scrollTop(); //スクロールの位置を取得
 
     var scroll = $(window).scrollTop(); //スクロールの位置を取得
269行: 277行:
 
   background-size: 200% 0.1em;
 
   background-size: 200% 0.1em;
 
   background-position: 0 0.5em;
 
   background-position: 0 0.5em;
 +
  transition: all 2s ease;
 +
  font-weight: bold;
 +
}
 +
.marker-animation4.active{
 +
background-position: -100% 100%;
 +
}
 +
 +
.marker-animation4 {
 +
  background-image: -webkit-linear-gradient(bottom, transparent 50%, #7fbfff 50%);
 +
  background-image: -moz-linear-gradient(bottom, transparent 50%, #7fbfff 50%);
 +
  background-image: -ms-linear-gradient(bottom, transparent 50%, #7fbff 50%);
 +
  background-image: -o-linear-gradient(bottom, transparent 50%, #7fbfff 50%);
 +
  background-image: linear-gradient(to bottom, transparent 50%, #7fbfff 50%);
 +
  background-repeat: no-repeat;
 +
  background-size: 200% 100%;
 +
  background-position: 0 100%;
 
   transition: all 2s ease;
 
   transition: all 2s ease;
 
   font-weight: bold;
 
   font-weight: bold;

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



個人用ツール
名前空間

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