<div>
<div id="container-intro">
<div id="TITLE">
<h1>PLASTIC WASTE</h1>
</div>
<img id="house" src="https://thumbs.dreamstime.com/z/flat-style-eco-house-badge-mountains-trees-vector-logo-template-design-concept-real-estate-agencies-hotels-cottages-47256017.jpg">
<img id="one" src="https://ae01.alicdn.com/kf/UTB8hM4TcFfFXKJk43Otq6xIPFXaK/X-Autohaux-Preto-Self-Adhesive-N-mero-1-Em-Forma-de-Decora-o-Etiqueta-Do-Carro.jpg_640x640.jpg">
<img id="arrow1" src="https://ubisafe.org/images/arrow-transparent-background.png">
<h2>Plastic Waste in HCM</h2>
<img id="trashcan" src="https://cdn.pixabay.com/photo/2016/04/01/00/10/flat-1298035__340.png">
<img id="two" src="https://image.shutterstock.com/image-vector/number-2-sign-design-template-260nw-735271582.jpg">
<h3>How to recycle plastic waste in Vietnam?</h3>
<img id="arrow2" src="https://png.icons8.com/windows/1600/thick-arrow-pointing-down.png">
<img id="person-throwing-trash" src="https://img3.stockfresh.com/files/r/rastudio/m/63/5956094_stock-vector-man-throwing-garbage-in-a-bin-thin-line-icon.jpg">
<img id="three" src="https://www.clker.com/cliparts/Y/W/6/s/c/k/number-3-design-md.png">
<h4>How to prevent people from littering in Vietnam?</h4>
<img id="arrow3" src="https://image.flaticon.com/icons/svg/33/33262.svg">
<img id="enjoy" src="https://yt3.ggpht.com/a-/AN66SAyHn51skhL9NZuD6Otcez6znwr5ZsxjSIxC9A=s900-mo-c-c0xffffffff-rj-k-no">
<img id="four" src="https://www.merlinmotorsport.co.uk/files/resized/large/R/img/rn_9_4.jpg?cachebreak=e8704429f3846f8e7d7c14b2ec72d306">
<h5>Make sure to Enjoy</h5>
</div>
<div id="container2">
<div id="title2">
<h1>Plastic Waste in Vietnam</h1>
</div>
<img id="graph" src="http://www.coresponsibility.com/wp-content/uploads/2015/11/Plastic-Blog-Graph-2.png">
<div class="popup" onclick="myFunction()">Click me!
<span class="popuptext" id="myPopup"> In HCM City, about 250,000 tons of plastic waste is generated every year.</span>
</div>
</div>
<div id="container3">
<div id="title4">
<h1>How to recycle plastic waste in Vietnam</h1>
</div>
<p id="xD">To recycle plastic, you could send plastic to companies like Knewrun Vina, Hoang Yen company, and much more companies you can donate to!</p>
<img id="lolzerxD" src="https://image.flaticon.com/icons/png/512/46/46510.png">
</div>
<div id="container4">
<div id="title5">
<h1>How to prevent littering in Vietnam</h1>
</div>
<p id="benislit">Littering is a major issue in this country, and one that will likely take a generation to change.</p>
<p id="benislit2"> One group trying to take on that challenging task is Vietnam Sach & Xanh.</p>
<img id="lastpic" src="https://cdn.iconscout.com/icon/free/png-256/forbidden-litter-no-not-prohibited-37951.png">
</div>
</div>
<div id="lastcontainer">
<h1>Source Cited</h1>
<ol>https://tuoitrenews.vn/news/city-diary/20180525/how-much-plastic-is-being-used-in-vietnam/45769.html</ol>
<ol>https://www.scrapmonster.com/companies/plastic-recycling/country/vietnam/16</ol>
<ol>https://www.forbes.com/sites/davisbrett/2016/04/30/vietnams-littering-epidemic/</ol>
</div>
#container-intro {
width:800px;
height:800px;
margin-top:85px;
margin-left:auto;
margin-right:auto;
position:relative;
background-color: lightgreen;
}
h1 {
text-align:center;
font-family:'Acme',sans-serif;
color:lightblue;
font-size:48px;
text-shadow: 2px 2px blue;
}
#TITLE {
padding-top:2px;
}
#house {
width:150px;
top:150px;
left:110px;
position:absolute;
border-radius: 50%;
}
#one {
width:25px;
position:absolute;
top:330px;
left:80px;
border-radius: 50%;
}
#arrow1 {
width:80px;
position:absolute;
top:200px;
left:350px;
}
h2 {
font-family:'comic sans ms',monographic;
color:gray;
text-shadow: 1px 1px black;
font-size:15px;
position:absolute;
top:319px;
left:110px;
}
#trashcan {
position:absolute;
width:150px;
top:150px;
left:500px;
}
#two {
position:absolute;
width:25px;
border-radius:50%;
top:330px;
left:450px;
}
h3 {
font-family:'Just Another Hand';
color:gray;
text-shadow: 1px 1px black;
font-size:15px;
position:absolute;
top:316px;
left:480px;
}
#arrow2 {
width:90px;
position:absolute;
left:550px;
top:370px;
}
#person-throwing-trash {
width:150px;
border-radius:50%;
position:absolute;
top:470px;
left:520px;
}
#three {
width:25px;
position:absolute;
top:640px;
left:470px;
}
h4 {
font-family:'Lobster';
color:gray;
text-shadow: 1px 1px black;
font-size:15px;
position:absolute;
top:620px;
left:500px;
}
#arrow3 {
width:60px;
position:absolute;
top:500px;
left:380px;
}
.floating{
animation-name: floating;
animation-name: floating;
animation-duration: 1.5s;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@keyframes floating {
0% {
transform: translateY(0%);
}
50% {
transform: translateY(8%);
}
100% {
transform: translateY(0%);
}
}
@-webkit-keyframes floating {
0% {
transform: translateY(0%);
}
50% {
transform: translateY(8%);
}
100% {
transform: translateY(0%);
}
}
/*
==============================================
tossing
==============================================
*/
.tossing{
animation-name: tossing;
animation-name: tossing;
animation-duration: 2.5s;
animation-duration: 2.5s;
animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@keyframes tossing {
0% {
transform: rotate(-4deg);
}
50% {
transform: rotate(4deg);
}
100% {
transform: rotate(-4deg);
}
}
@-webkit-keyframes tossing {
0% {
transform: rotate(-4deg);
}
50% {
transform: rotate(4deg);
}
100% {
transform: rotate(-4deg);
}
}
#container2 {
width:800px;
height:800px;
margin-top:85px;
margin-left:auto;
margin-right:auto;
position:relative;
background-color: yellow;
}
#graph {
background-color:white;
width:400px;
left:200px;
position:absolute;
top:400px;
}
#enjoy {
width:150px;
border-radius:100%;
position:absolute;
top:470px;
lefT:110px;
}
#four{
position:absolute;
width:25px;
border-radius:50px;
left:80px;
top:640px;
}
h5 {
font-family:'comic sans ms',monographic;
color:gray;
text-shadow: 1px 1px black;
font-size:15px;
position:absolute;
top:615px;
left:110px;
}
h6 {
font-family:'comic sans ms',monographic;
color:Green;
text-shadow:1px 1px green;
font-size: 30px;
position:absolute;
align:center;
}
.bounce{
animation-name: bounce;
animation-name: bounce;
animation-duration: 1.6s;
animation-duration: 1.6s;
animation-timing-function: ease;
animation-timing-function: ease;
transform-origin: 50% 100%;
transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
@keyframes bounce {
0% {
transform: translateY(0%) scaleY(0.6);
}
60%{
transform: translateY(-100%) scaleY(1.1);
}
70%{
transform: translateY(0%) scaleY(0.95) scaleX(1.05);
}
80%{
transform: translateY(0%) scaleY(1.05) scaleX(1);
}
90%{
transform: translateY(0%) scaleY(0.95) scaleX(1);
}
100%{
transform: translateY(0%) scaleY(1) scaleX(1);
}
}
@-webkit-keyframes bounce {
0% {
transform: translateY(0%) scaleY(0.6);
}
60%{
transform: translateY(-100%) scaleY(1.1);
}
70%{
transform: translateY(0%) scaleY(0.95) scaleX(1.05);
}
80%{
transform: translateY(0%) scaleY(1.05) scaleX(1);
}
90%{
transform: translateY(0%) scaleY(0.95) scaleX(1);
}
100%{
transform: translateY(0%) scaleY(1) scaleX(1);
}
}
.bigEntrance{
animation-iteration-count: 2;
animation-iteration-count: 2;
animation-delay: 2s;
animation-delay: 2s;
animation-name: bigEntrance;
animation-name: bigEntrance;
animation-duration: 1.6s;
animation-duration: 1.6s;
animation-timing-function: ease-out;
animation-timing-function: ease-out;
visibility: visible !important;
}
@keyframes bigEntrance {
0% {
transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
opacity: 0.2;
}
30% {
transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);
opacity: 1;
}
45% {
transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
opacity: 1;
}
60% {
transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);
opacity: 1;
}
75% {
transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
opacity: 1;
}
90% {
transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);
opacity: 1;
}
100% {
transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
opacity: 1;
}
}
@-webkit-keyframes bigEntrance {
0% {
transform: scale(0.3) rotate(6deg) translateX(-30%) translateY(30%);
opacity: 0.2;
}
30% {
transform: scale(1.03) rotate(-2deg) translateX(2%) translateY(-2%);
opacity: 1;
}
45% {
transform: scale(0.98) rotate(1deg) translateX(0%) translateY(0%);
opacity: 1;
}
60% {
transform: scale(1.01) rotate(-1deg) translateX(0%) translateY(0%);
opacity: 1;
}
75% {
transform: scale(0.99) rotate(1deg) translateX(0%) translateY(0%);
opacity: 1;
}
90% {
transform: scale(1.01) rotate(0deg) translateX(0%) translateY(0%);
opacity: 1;
}
100% {
transform: scale(1) rotate(0deg) translateX(0%) translateY(0%);
opacity: 1;
}
}
.popup {
position: relative;
display: inline-block;
cursor: pointer;
position:absolute;
align:center;
font-size:40px;
left:300px;
top:200px;
color:red;
font-family:'comic sans ms',monographic;
}
/* The actual popup (appears on top) */
.popup .popuptext {
visibility: hidden;
width: 360px;
background-color: lightblue;
color: green;
text-align: center;
border-radius: 6px;
padding: 8px 0;
position: absolute;
z-index: 1;
bottom: 100%;
left: 0%;
margin-left: -80px;
font-family:'comic sans ms',monographic;
}
/* Popup arrow */
.popup .popuptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
visibility: visible;
animation: fadeIn 1s;
animation: fadeIn 1s
}
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity:1 ;}
}
#image1 {
width:150px;
border-radius:50%;
left:100px;
top:80px;
position:absolute;
}
#container3 {
width:800px;
height:800px;
background-color:pink;
margin-top:85px;
margin-left:auto;
margin-right:auto;
position:relative;
}
#xD {
font-size:40px;
color:green;
position:relative;
align:center;
font-family:'comic sans ms',monographic;
}
#lolzerxD {
width:300px;
position:absolute;
top:400px;
left:200px;
}
#container4 {
background-color:gray;
width:800px;
height:800px;
margin-top:85px;
margin-left:auto;
margin-right:auto;
position:relative;
}
#benislit {
font-size:30px;
color:pink;
font-family:'comic sans ms',monographic;
margin-top:auto;
margin-left:auto;
margin-right:auto;
position:relative;
align:center;
}
#benislit2 {
font-size:30px;
color:red;
margin-top:auto;
margin-left:auto;
margin-right:auto;
position:relative;
align:center;
font-family:'comic sans ms',monographic;
text-shadow: 1px 1px black;
}
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
#lastpic {
width:200px;
top:400px;
left:300px;
position:absolute;
}
.pulse{
animation-name: pulse;
animation-name: pulse;
animation-duration: 1.5s;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@keyframes pulse {
0% {
transform: scale(0.9);
opacity: 0.7;
}
50% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0.9);
opacity: 0.7;
}
}
@-webkit-keyframes pulse {
0% {
transform: scale(0.95);
opacity: 0.7;
}
50% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(0.95);
opacity: 0.7;
}
}
@import url('https://fonts.googleapis.com/css?family=Lobster|Ubuntu+Condensed');
@import url('https://fonts.googleapis.com/css?family=Just+Another+Hand');
#lastcontainer {
width:800px;
height:800px;
background-color:orange;
margin-top:85px;
margin-left:auto;
margin-right:auto;
position:relative;
}
ol {
color:white;
font-family:'Just Another Hand';
font-size:20pt;
}
$('#house').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$('#person-throwing-trash').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$('#trashcan').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$('#enjoy').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$("#graph").addClass("bigEntrance");
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
$("#TITLE").addClass("bounce");
$('#title4').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$('#title2').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$('#title5').hover(function(){
$(this).fadeTo( "slow", 0 )
}, function(){
$(this).fadeTo( "slow", 1 )
});
$("#lolzerxD").addClass("pulse");
$("#lastpic").addClass("floating");
$('#house').click(function() {
$('html, body').animate({scrollTop:'1000px'}, 500);
});
$('#trashcan').click(function() {
$('html, body').animate({scrollTop:'2000px'}, 500);
});
$('#person-throwing-trash').click(function() {
$('html, body').animate({scrollTop:'3000px'}, 500);
});
This Pen doesn't use any external CSS resources.