Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
* {
margin: 0px;
padding: 0px;
}
html, body {
width: 100%;
height: 100%;
}
.paused {
-ms-animation-play-state:paused;
-o-animation-play-state:paused;
-moz-animation-play-state:paused;
-webkit-animation-play-state:paused;
animation-play-state: paused;
}
.cube {
width: 100px;
height: 100px;
position: relative;
-moz-transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
-webkit-animation-name: spin1, spin;
-webkit-animation-duration: 55s, 15s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
transform: rotateX(-20deg) rotateY(-45deg);
top: 50%;
left: 50%;
margin-left: -100px;
margin-top: -100px;
}
.cube div {
width: 100px;
height: 100px;
position: absolute;
background: orange;
border: 2px solid black;
box-shadow: inset 0px 0px 30px rgba(0, 0, 0, 0.6);
}
.cube div.top_side {
transform: rotateX(90deg);
margin-top: -50px;
}
.cube div.right_side {
transform: rotateY(90deg);
margin-left: 50px;
}
.cube div.bottom_side {
transform: rotateX(90deg);
margin-top: 50px;
}
.cube div.left_side {
transform: rotateY(-90deg);
margin-left: -50px;
}
.cube div.front_side {
transform: translateZ(50px);
}
.cube div.back_side {
transform: translateZ(-50px);
}
@-moz-keyframes spin {
from { -moz-transform: rotateX(0deg) }
to { -moz-transform: rotateY(-360deg)}}
@-webkit-keyframes spin {
from { -webkit-transform: rotateX(0deg) }
to { -webkit-transform: rotateY(-360deg)}}
@-webkit-keyframes spin1 {
from { left: 1000px }
to { left: -5px}}
</style>
</head>
<body>
<script>
$(document).ready(function () {
$("#stop1").click(function(e) {
$(".cube").css("-webkit-animation-play-state", "paused");
});
$("#stop2").click(function(e) {
$(".cube").css("-webkit-animation-play-state", "running");
});
});
</script>
<button id="stop1">stop</button>
<button id="stop2">resume</button>
<div class="cube">
<div class="top_side"></div>
<div class="right_side"></div>
<div class="bottom_side"></div>
<div class="left_side"></div>
<div class="back_side"></div>
<div class="front_side"></div>
</div>
</body>
</html> 
The most helpful HTML solutions