jQuery addClass example

Change class name on click in jQuery

by shelukhin89

HTML

<div class="div">
  <video class="video" src="http://seocomp.net/bengal.webm" loop autoplay></video>
  <span class="span">PREMIUM</span>
</div>

CSS

html {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
body {
	background: #010278;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.span {
	font-size: 120px;
	font-family: Arial;
	font-weight: 700;
	color: #fff;
	font-style: italic;
	text-shadow: 0 0 10px rgba(255,255,255,0.5),0 0 10px rgba(255,255,255,0.5);
  position: relative;
}
.video {
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -134px 0 0 -592px;
	transform: scale(0.7);
	pointer-events: none;
}