<div class="contents">
<h1>Contents</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<div class="copyright">
<p>© 2018 - Organisation</p>
</div>
<div class="sns">
<a href="#" class="contact">Contact</a>
<a href="#" class="fb"><i class="fa fa-facebook fa-fw" aria-hidden="true"></i></a>
<a href="#" class="tw"><i class="fa fa-twitter fa-fw" aria-hidden="true"></i></a>
<a href="#" class="insta"><i class="fa fa-instagram fa-fw" aria-hidden="true"></i></a>
</div>
</footer>
*, *:before, *:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.contents {
margin-bottom: 100px;
}
footer {
position: fixed;
bottom: 0;
display: inline-block;
width: 100%;
height: 70px;
margin: 0;
background-color: #9E9E9E;
box-shadow: 0 -3px 3px 0 rgba(0,0,0,0.2);
}
footer .copyright {
float: left;
width: 60%;
}
footer .copyright p {
font-size: 0.7em;
line-height: 70px;
padding-left: 10%;
letter-spacing: 1px;
color: #ffffff;
}
footer .sns {
float: right;
width: 40%;
}
footer .sns a {
width: 25%;
font-size: 1.2em;
font-weight: bold;
line-height: 70px;
float: left;
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
text-align: center;
text-decoration: none;
color: white;
}
footer .sns a:hover {
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
background-color: #222222;
}
footer .sns .insta {
background-color: #e4405f;
}
footer .sns .fb {
background-color: #3b5999;
}
footer .sns .tw {
background-color: #55acee;
}
footer .sns .contact {
background-color: #26C6DA;
}
@media (max-width: 480px) {
.contents {
margin-bottom: 200px;
}
footer {
height: auto;
}
footer .copyright {
width: 100%;
}
footer .copyright p {
padding: 0;
text-align: center;
}
footer .sns {
width: 100%;
}
}
<div class="contents">
<h1>Contents</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<div class="copyright">
<p>© 2018 - Organisation</p>
</div>
<div class="sns">
<a href="#" class="contact">Contact</a>
<a href="#" class="fb"><i class="fa fa-facebook fa-fw" aria-hidden="true"></i></a>
<a href="#" class="tw"><i class="fa fa-twitter fa-fw" aria-hidden="true"></i></a>
<a href="#" class="insta"><i class="fa fa-instagram fa-fw" aria-hidden="true"></i></a>
</div>
</footer>
*, *:before, *:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
min-height: 100%;
position: relative;
}
body {
margin-bottom: 5em;
}
footer {
bottom: 0;
width: 100%;
height: 70px;
position: absolute;
background-color: #9E9E9E;
}
footer .copyright {
float: left;
width: 50%;
}
footer .copyright p {
font-size: 0.7em;
line-height: 70px;
padding-left: 10%;
letter-spacing: 1px;
color: #ffffff;
}
footer .sns {
float: right;
width: 50%;
}
footer .sns a {
font-weight: bold;
line-height: 70px;
float: left;
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
text-align: center;
text-decoration: none;
color: white;
}
footer .sns a:hover {
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
background-color: #222222;
}
footer .sns .insta {
font-size: 1.2em;
width: 20%;
background-color: #e4405f;
}
footer .sns .fb {
font-size: 1.2em;
width: 20%;
background-color: #3b5999;
}
footer .sns .tw {
font-size: 1.2em;
width: 20%;
background-color: #55acee;
}
footer .sns .contact {
font-size: 0.8em;
width: 40%;
background-color: #26C6DA;
}
@media (max-width: 480px) {
.contents {
margin-bottom: 200px;
}
footer {
height: auto;
}
footer .copyright {
width: 100%;
}
footer .copyright p {
padding: 0;
text-align: center;
}
footer .sns {
width: 100%;
}
}
<div class="contents">
<h1>Contents</h1>
<p>スクロールすると幕が上がるようにFooter現れる</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="copyright">
<p>© 2018 - Organisation</p>
</div>
<div class="sns">
<a href="#" class="fb"><i class="fa fa-facebook fa-fw" aria-hidden="true"></i></a>
<a href="#" class="tw"><i class="fa fa-twitter fa-fw" aria-hidden="true"></i></a>
<a href="#" class="insta"><i class="fa fa-instagram fa-fw" aria-hidden="true"></i></a>
</div>
</div>
</footer>
*, *:before, *:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.contents{
background: rgb(236, 240, 241);
margin: auto;
margin-bottom: 350px; /* footerの高さ */
padding: 1em 0 10em 0;
min-height: 100vh;
box-shadow: 0 3px 3px 0 rgba(0,0,0,0.2);
}
footer {
position: fixed;
z-index: -100;
bottom: 0;
left: 0;
width: 100%;
height: 350px;
padding: 4em;
background: #01579B;
}
footer p {
font-size: 1em;
font-weight: 300;
color: #039BE5;
-webkit-column-count: 2;
column-count: 2;
-webkit-column-gap: 50px;
column-gap: 50px;
margin-bottom: 2em;
}
footer .copyright {
float: left;
width: 50%;
}
footer .copyright p {
font-size: 0.7em;
line-height: 2em;
letter-spacing: 1px;
color: #ffffff;
}
footer .sns {
float: right;
width: 50%;
}
footer .sns a {
font-weight: bold;
line-height: 2em;
width: 2em;
margin: auto 0.1em;
float: right;
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
text-align: center;
text-decoration: none;
color: #ffffff;
border-radius: 4px;
background-color: #00acc1;
}
footer .sns a:hover {
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
background-color: #222222;
}
footer .sns .insta {
background-color: #e4405f;
}
footer .sns .fb {
background-color: #3b5999;
}
footer .sns .tw {
background-color: #55acee;
}
<div class="contents">
<h1>Contents</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<div id="button">footer</div>
<div id="container">
<div id="cont">
<div class="copyright">
<p>© 2018 - Organisation</p>
</div>
<div class="sns">
<a href="#" class="insta"><i class="fa fa-instagram fa-fw" aria-hidden="true"></i></a>
<a href="#" class="tw"><i class="fa fa-twitter fa-fw" aria-hidden="true"></i></a>
<a href="#" class="fb"><i class="fa fa-facebook fa-fw" aria-hidden="true"></i></a>
</div>
</div>
</div>
</footer>
*, *:before, *:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.contents {
min-height: 100vh;
margin: auto;
padding: 1em 0 10em 0;
background: rgb(236, 240, 241);
}
footer #button {
position: relative;
width: 10em;
height: 2em;
margin: 0 auto;
padding: 0.2em;
cursor: pointer;
-webkit-transition: all 1s ease;
transition: all 1s ease;
text-align: center;
color: #00acc1;
border-radius: 3px 3px 0px 0px;
background: #006064;
}
footer #button:hover {
position: relative;
width: 10em;
height: 2em;
-webkit-transition: all 1s ease;
transition: all 1s ease;
}
footer {
position: fixed;
z-index: 999;
bottom: 0;
left: 0;
overflow: hidden;
width: 100%;
height: 1.5em;
margin: 0 auto;
-webkit-transition: all 1s ease;
transition: all 1s ease;
}
footer:hover {
height: 10em;
-webkit-transition: all 1s ease;
transition: all 1s ease;
}
footer #container {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #006064;
}
footer #cont {
margin: 0 auto;
padding: 1em;
color: #00acc1;
}
footer .copyright {
float: left;
width: 50%;
}
footer .copyright p {
font-size: 0.7em;
line-height: 2em;
padding-left: 10%;
letter-spacing: 1px;
color: #ffffff;
}
footer .sns {
float: right;
width: 50%;
}
footer .sns a {
font-weight: bold;
line-height: 2em;
width: 2em;
margin: auto 0.1em;
float: right;
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
text-align: center;
text-decoration: none;
color: #ffffff;
border-radius: 4px;
background-color: #00acc1;
}
footer .sns a:hover {
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
background-color: #222222;
}
footer .sns .insta {
background-color: #e4405f;
}
footer .sns .fb {
background-color: #3b5999;
}
footer .sns .tw {
background-color: #55acee;
}
<div class="contents">
<h1>Contents</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<footer>
<div class="copyright">
<p>© 2018 - Organisation</p>
</div>
<div class="sns">
<a href="#" class="contact">Contact</a>
<a href="#" class="fb"><i class="fa fa-facebook fa-fw" aria-hidden="true"></i></a>
<a href="#" class="tw"><i class="fa fa-twitter fa-fw" aria-hidden="true"></i></a>
<a href="#" class="insta"><i class="fa fa-instagram fa-fw" aria-hidden="true"></i></a>
</div>
</footer>
*, *:before, *:after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
min-height: 100%;
position: relative;
}
body {
margin-bottom: 5em;
}
footer {
position: -webkit-sticky;
position: sticky;
bottom: 0;
left: 0;
width: 100%;
height: 70px;
background-color: #9E9E9E;
text-align: center;
}
footer .copyright {
float: left;
width: 50%;
}
footer .copyright p {
font-size: 0.7em;
line-height: 70px;
padding-left: 10%;
letter-spacing: 1px;
color: #ffffff;
}
footer .sns {
float: right;
width: 50%;
}
footer .sns a {
font-weight: bold;
line-height: 70px;
float: left;
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
text-align: center;
text-decoration: none;
color: white;
}
footer .sns a:hover {
-webkit-transition: all, 0.3s;
transition: all, 0.3s;
background-color: #222222;
}
footer .sns .insta {
font-size: 1.2em;
width: 20%;
background-color: #e4405f;
}
footer .sns .fb {
font-size: 1.2em;
width: 20%;
background-color: #3b5999;
}
footer .sns .tw {
font-size: 1.2em;
width: 20%;
background-color: #55acee;
}
footer .sns .contact {
font-size: 0.8em;
width: 40%;
background-color: #26C6DA;
}
@media (max-width: 480px) {
.contents {
margin-bottom: 200px;
}
footer {
height: auto;
}
footer .copyright {
width: 100%;
}
footer .copyright p {
padding: 0;
text-align: center;
}
footer .sns {
width: 100%;
}
}