Scripts para Unbounce
Scripts para Unbounce
Controls CSS
Compilei diversos estilos CSS para ser facilmente utilizados nas suas páginas
<style>
/* APLICAR SOMBRA PROJETADA */
.sombra {
box-shadow: 0px 20px 10px 5px #0000000D; !important;
transition: all .8s;
}
.sombra:hover {
box-shadow: 0px 10px 5px 0px #00000026; !important;
}
}
.zoom:active
{
transform: scale(1.06,1.06);
}
}
.contract:active
{
transform: scale(0.94,0.94);
}
.glass2 {
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.round {
border-radius: 3%;
}
/* CONTADOR CRESCENTE */
.counter {
font-family: Work Sans;
font-size: 48px;
line-height: 48px;
font-weight: 700;
color: #e50914;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
/* BOTÃO PULSANTE */
.pulsate-bck {
-webkit-animation: pulsate-bck 2.5s ease-in-out infinite both;
animation: pulsate-bck 2.5s ease-in-out infinite both;
transition: all .8s;
}
@-webkit-keyframes pulsate-bck {
0% {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(0.95);
transform: scale(0.95);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@keyframes pulsate-bck {
0% {
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
-webkit-transform: scale(0.95);
transform: scale(0.95);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
</style>
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bb87ddb3-5fea-4cd5-8a82-7c4243d378be/COMO
_UTILIZAR_AS_CLASSES.mp4
<script type="text/javascript">
</script>
<style>
.desfoque1 {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.desfoque2 {
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
</style>
<style>
.zoom {
transition: all .8s;
}
.zoom:hover {
transform: scale(1.1,1.1) translateY(-2%);
}
.zoom:active
{
transform: scale(1.2,1.2) translateY(-2%)
}
</style>
Animação de Elementos
Animação de Elementos - JavaScript
<script src="//ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.7.2.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.js"></script>
<script>
//Update this function call with your own element ID, animate.css animation, and timeout in milliseconds. Each animated element
//Supported animations are 'fadeInUp' 'fadeInDown' 'flipInX' 'lightSpeedIn' 'bounceIn' 'slideInLeft' 'slideInRight' 'fadeInLeft
//BENEFÍCIOS
addAnimationData('#lp-pom-box-50','fadeInUp','700');
addAnimationData('#lp-pom-box-51','fadeInUp','800');
addAnimationData('#lp-pom-box-52','fadeInUp','900');
addAnimationData('#lp-pom-box-53','fadeInUp','1000');
addAnimationData('#lp-pom-box-54','fadeInUp','1100');
//addAnimationData('#your-next-element','bounceIn','2000');
Menu Retrátil
Menu Retrátil - HTML
<section class="accordion-wrapper">
<section class="accordion">
<input type="radio" name="radio-a" class="accordion-input" id="check1" checked>
<label class="accordion-label" for="check1">Criação</label>
<section class="accordion-content">
<p>Recomendo o uso desse menu para FAQ's</p>
</section>
</section>
<section class="accordion">
<input type="radio" name="radio-a" class="accordion-input" id="check2">
<label class="accordion-label" for="check2">De</label>
<section class="accordion-content">
<p>Para listas de conteúdos de cursos</p>
</section>
</section>
<section class="accordion">
<input type="radio" name="radio-a" class="accordion-input" id="check3">
<label class="accordion-label" for="check3">Menu</label>
<section class="accordion-content">
<p>Catálogos de produtos</p>
</section>
<style>
#lp-code-66
body .accordion-wrapper {
color: #ffffff;
background-color: #131313;
padding: 0 1em 1em;
}
h1 .accordion-wrapper{
text-align:center;
}
.accordion-input {
position: absolute;
opacity: 0;
z-index: -1;
}
.accordion-wrapper {
border-radius: 8px;
overflow: hidden;
width: 100%;
margin:0 auto;
}
.accordion {
width: 100%;
color: #ffffff;
overflow: hidden;
margin-bottom: 5px;
}
.accordion:last-child{
margin-bottom: 5px;
}
.accordion-label {
display: flex;
-webkit-box-pack: justify;
justify-content: space-between;
padding: 20px;
background-color: #383838;
font-weight: 600;
cursor: pointer;
font-size: 16px;
border-radius: 8px;
letter-spacing: 0px;
}
.accordion-label:hover {
background-color: #E90514;
transition: all .7s;
}
.accordion-label::after {
content: "\276F";
width: 16px;
height: 16px;
text-align: center;
-webkit-transition: all 0.3s ease-out;
transition: all 0.5s ease-out;
letter-spacing: 0px;
}
.accordion-content {
max-height: 0;
padding: 0 16px;
color: #FFFFFF;
background-color: #ffffff opacity:0;
-webkit-transition: all 0.3s ease-out;
transition: all 0.5s ease-out;
}
.accordion-content p{
color: #ffffff;
font-size: 15px;
line-height: 130%;
font-weight: 300;
letter-spacing: 0px;
}
input:checked + .accordion-label {
}
input:checked + .accordion-label::after {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
transition: all 0.5s ease-out;
}
input:checked ~ .accordion-content {
max-height: 100vh;
padding: 16px;
}
</style>
<style>
.sombra {
box-shadow: 0px 0px 5px 0px #000000aa; !important;
transition: all .8s;
}
.sombra:hover {
box-shadow: 0px 0px 50px 5px #00000040; !important;
}
</style>
<style>
.brilho {
box-shadow: 0px 0px 5px 0px #e50914; !important;
transition: all .8s;
}
.brilho:hover {
box-shadow: 0px 0px 50px 5px #e5091440; !important;
}
</style>
<style>
#lp-pom-root
.bebas {
font-family: 'Bebas Neue';
}
</style>
Carrossel Dinâmico
Head Carrossel - JavaScript
// Functions to cycle through the elements in the containing box and show/hide them
function cycleRight(el, delay) {
$(el[0]).fadeIn(500)
.delay(delay)
.fadeOut(500)
.promise()
.done(function() {
$(el[1]).fadeIn(500);
var putBack = el.splice(0, 1);
allEls.push(putBack[0]);
});
}
function cycleTimeRight() {
cycleRight(allEls, time);
$(right).off('click');
setTimeout(function() {
$(right).on('click', cycleTimeRight);
}, time*3);
}
function cycleTimeLeft() {
cycleLeft(allEls, time);
$(left).off('click');
setTimeout(function() {
$(left).on('click', cycleTimeLeft);
}, time*3);
}
$(right).click(function() {
cycleTimeRight();
});
$(left).click(function() {
cycleTimeLeft();
});
});
</script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<lottie-player src="https://assets7.lottiefiles.com/packages/lf20_enm1ohpk.json" background="transparent" speed="1" style="w
https://lottiefiles.com/
<style>
#lp-pom-root
::selection {
color: #FFFFFF;
background: #E50914;
}
</style>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* width */
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: #000000;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #e50914;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #e50914;
}
</style>
</head>
<body>
<script>
/* PrognRoll | https://mburakerman.github.io/prognroll/ | @mburakerman | License: MIT */
(function ($) {
$.fn.prognroll = function (options) {
$("body").prepend(progressBar).end().find(".prognroll-bar").not(":first").remove();
$(".prognroll-bar").css({
position: "fixed",
top: 0,
left: 0,
width: 0,
height: settings.height,
backgroundColor: settings.color,
zIndex: 2147483647
});
var globals = {
"windowScrollTop": $(window).scrollTop(),
"windowOuterHeight": $(window).outerHeight(),
"bodyHeight": $(document).height()
}
function bindWindowScroll() {
$(window).scroll(function (e) {
e.preventDefault();
globals.windowScrollTop = $(window).scrollTop();
globals.windowOuterHeight = $(window).outerHeight();
globals.bodyHeight = $(document).height();
JQuery 3.7.0
JavaScript