Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-elements   php

Repository URL to install this package:

Version: 2.5.6 

/ scss / addons / _jet-banner.scss

.elementor-jet-banner {
	&:after {
		clear: both;
		width: 100%;
		display: block;
		content: '';
	}
}
.jet-banner {
	position: relative;
	overflow: hidden;
	float: left;
	max-width: 100%;
	width: 100%;
	* {
		box-sizing: border-box;
	}
	&__content {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 2;
		text-align: center;
	}
	&__content-wrap {
		display: flex;
		flex-flow: column;
	}
	.jet-banner__title,
	.jet-banner__text {
		margin: 0;
		padding: 0;
	}
	&__overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
		opacity: 0;
		background: #000;
		-webkit-backface-visibility: hidden;
		-webkit-transform: translate3d(0,0,0);
		transition: opacity 0.35s;
	}
	&__img {
		display: block;
	}
	&:hover {
		.jet-banner__overlay {
			opacity: .2;
		}
	}

	&.jet-effect-none {
		.jet-banner__content {
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}

	&.jet-effect-lily {
		.jet-banner__img {
			max-width: none;
			width: -webkit-calc(100% + 50px);
			width: calc(100% + 50px);
			transition: transform 0.35s;
			@include translate-3d(-40px,0,0);
		}
		.jet-banner__content {
			text-align: left;
		}
		.jet-banner__content-wrap {
			position: absolute;
			bottom: 0;
			left: 0;
			padding: 2em;
			width: 100%;
			height: 50%;
			z-index: 2;
		}
		.jet-banner__title,
		.jet-banner__text {
			transform: translate3d(0,40px,0);
		}
		.jet-banner__title {
			transition: transform 0.35s;
		}

		.jet-banner__text {
			color: rgba(255,255,255,0.8);
			opacity: 0;
			transition: opacity 0.2s, transform 0.35s;
		}
		&:hover {
			.jet-banner__text {
				opacity: 1;
			}

			.jet-banner__img,
			.jet-banner__title,
			.jet-banner__text {
				transform: translate3d(0,0,0);
			}

			.jet-banner__text {
				transition-delay: 0.05s;
				transition-duration: 0.35s;
			}
		}
	}

	&.jet-effect-sadie {

		.jet-banner__title {
			position: absolute;
			top: 50%;
			left: 0;
			width: 100%;
			-webkit-transition: -webkit-transform 0.35s, color 0.35s;
			transition: transform 0.35s, color 0.35s;
			-webkit-transform: translate3d(0,-50%,0);
			transform: translate3d(0,-50%,0);
		}

		.jet-banner__text {
			-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
			transition: opacity 0.35s, transform 0.35s;
		}

		.jet-banner__text {
			position: absolute;
			bottom: 0;
			left: 0;
			padding: 2em;
			width: 100%;
			opacity: 0;
			-webkit-transform: translate3d(0,10px,0);
			transform: translate3d(0,10px,0);
		}

		&:hover {
			.jet-banner__title {
				-webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
				transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
			}

			.jet-banner__text {
				opacity: 1;
				-webkit-transform: translate3d(0,0,0);
				transform: translate3d(0,0,0);
			}
		}
	}

	&.jet-effect-layla {
		.jet-banner__content {
			padding: 3em;
		}

		.jet-banner__content::before,
		.jet-banner__content::after {
			position: absolute;
			content: '';
			opacity: 0;
			z-index: 2;
		}

		.jet-banner__content::before {
			top: 40px;
			right: 20px;
			bottom: 40px;
			left: 20px;
			border-top: 1px solid #fff;
			border-bottom: 1px solid #fff;
			transform: scale(0,1);
			transform-origin: 0 0;
		}

		.jet-banner__content::after {
			top: 20px;
			right: 40px;
			bottom: 20px;
			left: 40px;
			border-right: 1px solid #fff;
			border-left: 1px solid #fff;
			transform: scale(1,0);
			transform-origin: 100% 0;
		}

		.jet-banner__title {
			padding-top: 26%;
			transition: transform 0.35s;
		}

		.jet-banner__text {
			padding: 0.5em 2em;
			text-transform: none;
			opacity: 0;
			transform: translate3d(0,-10px,0);
		}

		.jet-banner__title {
			transform: translate3d(0,-30px,0);
		}

		.jet-banner__content::before,
		.jet-banner__content::after,
		.jet-banner__text {
			transition: opacity 0.35s, transform 0.35s;
		}

		&:hover {
			.jet-banner__content::before,
			.jet-banner__content::after {
				opacity: 1;
				transform: scale(1);
			}

			.jet-banner__title,
			.jet-banner__text {
				opacity: 1;
				transform: translate3d(0,0,0);
			}

			.jet-banner__content::after,
			.jet-banner__title,
			.jet-banner__text {
				transition-delay: 0.15s;
			}
		}
	}

	&.jet-effect-oscar {

		.jet-banner__content {
			padding: 3em;
		}

		.jet-banner__content::before {
			position: absolute;
			top: 30px;
			right: 30px;
			bottom: 30px;
			left: 30px;
			border: 1px solid #fff;
			content: '';
		}

		.jet-banner__title {
			margin: 20% 0 10px 0;
			transition: transform 0.35s;
			transform: translate3d(0,100%,0);
		}

		.jet-banner__img {
			width: 100%;
		}

		.jet-banner__content::before,
		.jet-banner__text {
			opacity: 0;
			transition: opacity 0.35s, transform 0.35s;
			transform: scale(0);
		}

		&:hover {
			.jet-banner__title {
				transform: translate3d(0,0,0);
			}

			.jet-banner__content::before,
			.jet-banner__text {
				opacity: 1;
				transform: scale(1);
			}

		}
	}

	&.jet-effect-marley {

		.jet-banner__content {
			text-align: right;
		}

		.jet-banner__title,
		.jet-banner__text {
			position: absolute;
			right: 30px;
			left: 30px;
			padding: 10px 0;
		}


		.jet-banner__text {
			bottom: 30px;
			transform: translate3d(0,100%,0);
		}

		.jet-banner__title {
			top: 30px;
			transition: transform 0.35s;
			transform: translate3d(0,20px,0);
		}

		.jet-banner__title::after {
			position: absolute;
			top: 100%;
			left: 0;
			width: 100%;
			height: 4px;
			background: #fff;
			content: '';
			transform: translate3d(0,40px,0);
		}

		.jet-banner__title::after,
		.jet-banner__text {
			opacity: 0;
			transition: opacity 0.35s, transform 0.35s;
		}

		&:hover {

			.jet-banner__title {
				transform: translate3d(0,0,0);
			}

			.jet-banner__title::after,
			.jet-banner__text {
				opacity: 1;
				transform: translate3d(0,0,0);
			}

		}
	}

	&.jet-effect-ruby {
Loading ...