Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <main>
    <p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p><p>test</p>
</main>
<!--popWindowClose-->
<input id="popWindowClose" type="radio" name="popWindow" class="shareIcon-unshown" value="0">
<!--shareウインドウ--> 
<div id = "shareIcon">
     <input id="shareIcon-input" type="radio" name="popWindow" class="shareIcon-unshown" value="1"><!--開閉を判別するチェックボックス-->
   <label class="shareIcon-unshown" id="shareIcon-close" for="popWindowClose"></label><!--Close用グレーバック-->
   <div id="shareIcon-content">
     <!--格納用シェアアイコン群↓-->
     <div class="share-button">
       <div class="share-inner">
         <a href="http://www.facebook.com/sharer.php?u={URLEncodedPermalink}" onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;" class="facebook-button"><i class="fa fa-facebook" aria-hidden="true"></i></a>
         <a href="http://twitter.com/intent/tweet?text={Title} {URLEncodedPermalink}" target="_blank" class="twitter-button"><i class="fa fa-twitter" aria-hidden="true"></i></a>
         <a href="https://plus.google.com/share?url={URLEncodedPermalink}" onclick="window.open(this.href, 'Gwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;" class="googleplus-button"><i class="fa fa-google-plus"></i></a>
         <a href="http://getpocket.com/edit?url={URLEncodedPermalink}" class="pocket-button" target="_blank"><i class="fa fa-get-pocket"></i></a>
       </div>
     </div>
     <!--格納用シェアアイコン群↑-->
     <label class="shareIcon-unshown" id="shareIcon-close-button" for="popWindowClose"><i class="fa fa-times-circle" aria-hidden="true"></i></label><!--Close用×ボタン-->
   </div>
</div>
<!--followウインドウ--> 
<div id="followIcon">
   <input id="followIcon-input" type="radio" name="popWindow" class="shareIcon-unshown" value="2">
   <label class="shareIcon-unshown" id="followIcon-close" for="popWindowClose"></label>
   <div id="followIcon-content">
     <div id="followIcon-content-link">
   	   <a href="#" target="_blank" class="twitter" rel="noopener noreferrer"><i class="fa fa-twitter" aria-hidden="true"></i></a>
       <a href="#" target="_blank" class="facebook" rel="noopener noreferrer"><i class="fa fa-facebook" aria-hidden="true"></i></a>
       <a href="#" target="_blank" class="instagram" rel="noopener noreferrer"><i class="fa fa-instagram" aria-hidden="true"></i></a>
     </div>
     <label class="shareIcon-unshown" id="shareIcon-close-button" for="popWindowClose"><i class="fa fa-times-circle" aria-hidden="true"></i></label>
   </div>
</div>
<!--フッターメニュー-->
<footer>
    <div id="footerMenuBar-MobileTablet">
        <div class="list">
            <a class="followIcon" href="#mobile_footer_followButton"><br><span>Follow me.</span></a>
            <a class="shareIcon" href="#mobile_footer_shareButton"><br><span>Share this!</span></a>
            <a class="topIcon" href ="#"><br><span>TOP</span></a>
        </div>
    </div> 
</footer>
              
            
!

CSS

              
                /*フッターメニュー体裁*/
#footerMenuBar-MobileTablet{
  z-index: 100;
  transition: .5s ease-in-out;
  transform: translateY(105%);
	position: fixed;/*画面下に固定*/
	left: 0;
	bottom: 0;
	width: 100%;
	height: auto;
	background-color: #3292EB;/*背景色*/
	-webkit-box-shadow: 0px -2px 5px rgba(0,0,0,0.50);
	box-shadow: 0px -2px 5px rgba(0,0,0,0.50);
}
#footerMenuBar-MobileTablet .list{
  margin: 5px;
  display: flex;/*以下でセンター配置*/
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
#footerMenuBar-MobileTablet .list a{
  text-decoration: none;
  color: #fff;/*文字色*/
  flex: 1 1 auto;/*エリアを等分割*/
  text-align: center;
  display: inline-block;
}
#footerMenuBar-MobileTablet a.followIcon::before{
  font-family: 'FontAwesome';
  content: '\f234';
}
#footerMenuBar-MobileTablet a.shareIcon::before{
  font-family: 'FontAwesome';
  content: '\f1e1';
}
#footerMenuBar-MobileTablet a.topIcon::before{
  font-family: 'FontAwesome';
  content: '\f106';
}
/* Shareウィンドウ↓ */
	/*チェックボックス等は非表示に*/
.shareIcon-unshown {
  display:none;
}
	/*閉じる用の薄黒カバー*/
#shareIcon-close, #followIcon-close {
	display: none;/*はじめは隠しておく*/
  position: fixed;
  z-index: 99;
  top: 0;/*全体に広がるように*/
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  transition: .3s ease-in-out;
}
	/*中身*/
#shareIcon-content {
	border: 8px ridge #95D3FF;
	background-image: -webkit-linear-gradient(90deg,rgba(222,243,255,1.00) 0%,rgba(239,248,253,1.00) 100%);
	background-image: -moz-linear-gradient(90deg,rgba(222,243,255,1.00) 0%,rgba(239,248,253,1.00) 100%);
	background-image: -o-linear-gradient(90deg,rgba(222,243,255,1.00) 0%,rgba(239,248,253,1.00) 100%);
	background-image: linear-gradient(0deg,rgba(222,243,255,1.00) 0%,rgba(239,248,253,1.00) 100%);
	width: 60%;/*右側に隙間を作る(閉じるカバーを表示)*/
  max-width: 450px;/*最大幅(調整してください)*/
  height: auto;
	position: fixed;
  position: fixed;
  top: 50%;
  left: 50%;
	z-index: 9999;/*最前面に*/
  -webkit-transform:scale(0) translate(-50%,-50%);
transform: scale(0) translate(-50%,-50%);
  transform-origin: 0 50% 0;
  transition: .3s ease-in-out;/*滑らかに表示*/
  box-shadow: 1px 1px 5px rgba(0,0,0,1.00);
}
/* 閉じるボタン */
#shareIcon-close-button {
	position: absolute;
	top: -15px;
	right: -15px;
	text-align: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: .2s ease-out;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.12), 0 2px 2px 0 rgba(0,0,0,.24);
	background: #fff;
	display: block;
}
#shareIcon-close-button i {
	line-height: 130%;
  font-size: 23px;
	transform-origin: 50% 50% 0;
  transition: .2s ease-out;
	-webkit-transform: scale(1);
  transform: scale(1);
}
#shareIcon-close-button:hover {
	background-color: #FF9E00;/*背景色を変更*/
	box-shadow: 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12), 0 2px 4px -1px rgba(0,0,0,.2);
}
#shareIcon-close-button:hover .fa-times-circle {/*ホバーでズームアウトイン*/
	animation: scaleDownToUp 0.5s linear;
	-webkit-animation: scaleDownToUp 0.5s linear;
}
#shareIcon-close-button:hover .fa:before {
	color: #fff;
}
/*シェアアイコン群スタイル↓*/
.share-inner{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center
  margin: 0 auto;
	padding: 15px;
}
.share-inner a {
  box-sizing: border-box;
  display: inline-block;
  background-color: white;
  transition: background-color 0.4s ease-in-out 0s;
  width: 40px;
  height: 40px;
  padding: 2px 4px 6px 4px;
  margin: 15px;
  border: 3px solid;
  border-radius: 7px;
  font-size: 25px;
  text-align: center;
  text-decoration: none;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.50)
}
.share-inner a:hover{
  animation: rotatePop 0.5s linear;
	-webkit-animation: rotatePop 0.5s linear;
	transform: scale(1.4);
}
a.hatena-bookmark-button{
  background-color: #3c7dd1;
  border: 3px solid #3c7dd1;
  color: white;
}
a.hatena-bookmark-button:hover{
  background-color: white;
  border: 3px solid #3c7dd1;
  color: #3c7dd1;
}
a.facebook-button{
  background-color: #3b5998;
  border: 3px solid #3b5998;
  color: white;
}
a.facebook-button:hover{
  background-color: white;
  border: 3px solid #3b5998;
  color: #3b5998;
}
a.twitter-button{
  background-color: #55acee;
  border: 3px solid #55acee;
  color: white;
}
a.twitter-button:hover{
  background-color: white;
  border: 3px solid #55acee;
  color: #55acee;
}
a.googleplus-button{
  background-color: #dd4b39;
  border: 3px solid #dd4b39;
  color: white;
}
a.googleplus-button:hover{
  background-color: white;
  border: 3px solid #dd4b39;
  color: #dd4b39;
}
a.pocket-button{
  background-color: #ee4257;
  border: 3px solid #ee4257;
  color: white;
}
a.pocket-button:hover{
  background-color: white;
  border: 3px solid #ee4257;
  color: #ee4257;
}
/*シェアアイコン群スタイル↑*/
/* Shareウィンドウ↑ */
/* followウィンドウ↓ */
  /*中身*/
#followIcon-content{
box-shadow: 1px 1px 5px rgba(0,0,0,1.00);
border: 8px ridge #FFE1C4;
background: #FFE1C4;
background-image: linear-gradient(180deg,rgba(253,212,170,1.00) 0.00%,rgba(255,233,212,1.00) 100%);
width: 60%;
max-width: 250px;
padding: 10px;
height: auto;
position: fixed;
top: 50%;
left: 50%;
z-index: 9999;
border-radius: 20px;
-webkit-transform:scale(0) translate(-50%,-50%);
transform: scale(0) translate(-50%,-50%);
transform-origin: 0 50% 0;
transition: .3s ease-in-out;
}
#followIcon-content-link{
width: 100%;
display: flex;
flex-flow:row wrap;
justify-content: center;
align-items: center;
}
#followIcon-content a{
display: inline-block;
width: 48px;
height: 48px;
margin: 0 4%;
font-size: 30px;
text-align: center;
border-radius: 100px;
text-decoration: none;
box-shadow: 1px 1px 2px rgba(0,0,0,0.50)
}#followIcon-content a{
display: inline-block;
width: 48px;
height: 48px;
margin: 0 4%;
font-size: 30px;
text-align: center;
border-radius: 100px;
text-decoration: none;
box-shadow: 1px 1px 2px rgba(0,0,0,0.50)
}
/*followアイコン群スタイル↓*/
#followIcon-content a.twitter{
background-color: #55acee;
color: white;
}
#followIcon-content  a.facebook{
background-color: #3b5998;
color: white;
}
#followIcon-content  a.instagram{
background:rgba(238,74,75,1.00);
background-image: linear-gradient(225deg,rgba(153,46,186,1.00) 0%,rgba(238,74,75,1.00) 65%,rgba(241,126,45,1.00) 100%);
color: white;
}
/*followアイコン群スタイル↑*/
/* followウィンドウ↑ */
/* checked表示体裁 */
#shareIcon-input:checked ~ #shareIcon-close, #followIcon-input:checked ~ #followIcon-close {
display: block;/*カバーを表示*/
opacity: .5;
}
#shareIcon-input:checked ~ #shareIcon-content, #followIcon-input:checked ~ #followIcon-content {
-webkit-transform:scale(1) translate(-50%,-50%);
transform: scale(1) translate(-50%,-50%);
}
/*開閉シェアボタンスタイル↑*/
/*アクション↓*/
/*ズームアウトズームイン*/
@keyframes scaleDownToUp {
	0% { 
		transform: scale(1);
	}
	50% { 
  	transform: scale(0); 
	}
	100% { 
  	transform: scale(1); 
	}
}
@-webkit-keyframes scaleDownToUp {
	0% { 
		transform: scale(1); 
	}
	50% { 
  	transform: scale(0); 
	}
	100% { 
  	transform: scale(1); 
	}
}
/*アクション↑*/
              
            
!

JS

              
                $(window).on('scroll', function(){
  var doch = $(document).innerHeight();/*ドキュメントの高さ*/
  var winh = $(window).innerHeight();/*ウィンドウの高さ*/
  var bottom = doch - winh;/*ページ最下部のスクロールトップの高さ*/
  if (bottom <= $(window).scrollTop()){
    /*一番下までスクロールした時に実行*/
    setTimeout(function(){
      if($('#followIcon-input').prop('checked') === false && $('#shareIcon-input').prop('checked') === false){
        $("#footerMenuBar-MobileTablet").css('transform','translateY(105%)');
      }/*シェアとフォローウインドウが両方とも閉じているとき*/
    },5000);/*5秒後に実行*/
  }else if(100 <= $(window).scrollTop()){
    /*画面トップからスクロールしたとき*/
    $("#footerMenuBar-MobileTablet").css('transform','translateY(0%)');
  }else{
    /*その他の時*/
    if($('#followIcon-input').prop('checked') === false && $('#shareIcon-input').prop('checked') === false){
      $("#footerMenuBar-MobileTablet").css('transform','translateY(105%)');
    }
  }
});
/* inputにcheckedをいれる */
$('a[href="#mobile_footer_shareButton"]').on('click', function(){
  $("#st-footermenubox").fadeIn();
  if($('#shareIcon-input').prop('checked') === false){
    $('#shareIcon-input').prop('checked',true);
  }else{
    $('#shareIcon-input').prop('checked',false);
  }
});
$('a[href="#mobile_footer_followButton"]').on('click', function(){
  $("#st-footermenubox").fadeIn();
  if($('#followIcon-input').prop('checked') === false){
    $('#followIcon-input').prop('checked',true);
  }else{
    $('#followIcon-input').prop('checked',false);
  }
});
              
            
!
999px

Console