HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's added here will be added as <link>
s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>TTS</title>
</head>
<body class="booty">
<div class="container text-center">
<img class="speech" src="https://i.imgur.com/qKLVxuz.png" alt="">
<div class="row">
<div class="col-md-6 mx-auto">
<form class="booty">
<div class="form-group">
<textarea name="" id="text-input" class="form-control
form-control-lg" placeholder="Type anything..."></textarea>
</div>
<div class="form-group">
<label for="pitch">Pitch</label>
<div id="pitch-value" class="badge badge-primary
float-right">1</div>
<input type="range" id="pitch" class="custom-range" min="0.5" max="2" value="1" step="0.1">
</div>
<div class="form-group">
<label for="rate">Rate</label>
<div id="rate-value" class="badge badge-primary
float-right">1</div>
<input type="range" id="rate" class="custom-range" min="0.5" max="2" value="1" step="0.1">
</div>
<div class="form-group">
<select id="voice-select" class="form-control
form-control-lg"></select>
</div>
<button class="btn btn-light btn-lg btn-block">Speak It
</button>
<div id="soc">
<ul class="fh5co-social">
<li class="booger"><a href="https://www.facebook.com/alphicreative"><i class="icon-facebook"></i></a></li>
<li class="booger"><a href="https://twitter.com/chrisjeffries24"><i class="icon-twitter"></i></a></li>
<li class="booger"><a href="http://alphidesign.de/"><i class="icon-globe"></i></a></li>
<li class="booger"><a href="https://github.com/chrisjeffries24"><i class="icon-github"></i></a></li>
<li class="booger"><a href="https://codepen.io/chrisjeffries24/"><i class="icon-codepen"></i></a></li>
<li class="booger"> <a href="https://www.behance.net/ChristopherJeffries"><i class="icon-behance"></i></a></li>
</ul>
</div>
</form>
</div>
</div>
</div>
<style>
.icon {
width: 80px;
height: 80px;
justify-content: center;
}
.speech {
justify-content: center;
}
.booty {
color: white;
font-family: futura;
background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
background-size: 400% 400%;
-webkit-animation: Gradient 15s ease infinite;
-moz-animation: Gradient 15s ease infinite;
animation: Gradient 15s ease infinite;
}
@-webkit-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@-moz-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
</style>
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="js/main.js"></script>
</body>
</html>
@font-face {
font-family: 'icomoon';
src: url("../fonts/icomoon/icomoon.eot?srf3rx");
src: url("../fonts/icomoon/icomoon.eot?srf3rx#iefix") format("embedded-opentype"), url("../fonts/icomoon/icomoon.ttf?srf3rx") format("truetype"), url("../fonts/icomoon/icomoon.woff?srf3rx") format("woff"), url("../fonts/icomoon/icomoon.svg?srf3rx#icomoon") format("svg");
font-weight: normal;
font-style: normal;
}
body {
font-family: futura, Arial, Helvetica;
font-weight: 300;
font-size: 20px;
line-height: 1;
color: rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 992px) {
body {
font-size: 16px;
}
}
a {
color: #3ea6c5;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
a:hover, a:active, a:focus {
color: #3ea6c5;
outline: none;
}
p {
margin-bottom: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
color: #000;
font-family: roboto, Arial, Helvetica;
font-weight: 700;
margin: 0 0 30px 0;
}
figure {
margin-bottom: 2.5em;
float: left;
width: 100%;
}
figure figcaption {
font-size: 16px;
width: 80%;
margin: 20px auto 0px auto;
color: #b3b3b3;
font-style: italic;
font-family: futura, Times, serif;
}
@media screen and (max-width: 480px) {
figure figcaption {
width: 100%;
}
}
::-webkit-selection {
color: #fff;
background: #3ea6c5;
}
::-moz-selection {
color: #fff;
background: #3ea6c5;
}
::selection {
color: #fff;
background: #3ea6c5;
}
#fh5co-page {
width: 100%;
overflow: hidden;
position: relative;
}
#fh5co-aside {
padding-top: 40px;
padding-bottom: 40px;
width: 15%;
position: fixed;
bottom: 0;
top: 0;
left: 0;
overflow-y: scroll;
background: #e6e6e6;
z-index: 1001;
-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
-ms-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
-o-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.35);
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
#fh5co-aside.border {
border-right: 1px solid #e6e6e6;
}
@media screen and (max-width: 1200px) {
#fh5co-aside {
width: 30%;
}
}
@media screen and (max-width: 768px) {
#fh5co-aside {
width: 270px;
-moz-transform: translateX(-270px);
-webkit-transform: translateX(-270px);
-ms-transform: translateX(-270px);
-o-transform: translateX(-270px);
transform: translateX(-270px);
}
}
#fh5co-aside #fh5co-logo {
text-align: center;
}
#fh5co-aside #fh5co-main-menu ul {
text-align: center;
margin: 0;
padding: 0;
}
@media screen and (max-width: 768px) {
#fh5co-aside #fh5co-main-menu ul {
margin: 0 0 2em 0;
}
}
#fh5co-aside #fh5co-main-menu ul li {
margin: 0 0 10px 0;
padding: 0;
list-style: none;
}
#fh5co-aside #fh5co-main-menu ul li a {
color: rgba(0, 0, 0, 0.5);
text-decoration: none;
letter-spacing: .1em;
text-transform: uppercase;
font-size: 13px;
font-weight: 300;
position: relative;
-webkit-transition: 0.3s;
-o-transition: 0.3s;
transition: 0.3s;
padding: 10px 10px;
letter-spacing: .2em;
font-family: futura, Times, serif;
}
#fh5co-aside #fh5co-main-menu ul li a:after {
content: "";
position: absolute;
height: 2px;
bottom: 7px;
left: 10px;
right: 10px;
background-color: #3ea6c5;
visibility: hidden;
-webkit-transform: scaleX(0);
-moz-transform: scaleX(0);
-ms-transform: scaleX(0);
-o-transform: scaleX(0);
transform: scaleX(0);
-webkit-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
-moz-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
-ms-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
-o-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#fh5co-aside #fh5co-main-menu ul li a:hover {
text-decoration: none;
color: black;
}
#fh5co-aside #fh5co-main-menu ul li a:hover:after {
visibility: visible;
-webkit-transform: scaleX(1);
-moz-transform: scaleX(1);
-ms-transform: scaleX(1);
-o-transform: scaleX(1);
transform: scaleX(1);
}
#fh5co-aside #fh5co-main-menu ul li.fh5co-active a {
color: black;
}
#fh5co-aside #fh5co-main-menu ul li.fh5co-active a:after {
visibility: visible;
-webkit-transform: scaleX(1);
-moz-transform: scaleX(1);
-ms-transform: scaleX(1);
-o-transform: scaleX(1);
transform: scaleX(1);
}
#fh5co-aside .fh5co-footer {
position: absolute;
bottom: 40px;
font-size: 14px;
text-align: center;
width: 100%;
font-weight: 400;
color: rgba(0, 0, 0, 0.6);
}
@media screen and (max-width: 768px) {
#fh5co-aside .fh5co-footer {
position: relative;
bottom: 0;
}
}
#fh5co-aside .fh5co-footer span {
display: block;
}
#fh5co-aside .fh5co-footer ul {
padding: 0;
margin: 0;
text-align: center;
}
#fh5co-aside .fh5co-footer ul li {
padding: 0;
margin: 0;
display: inline;
list-style: none;
}
#fh5co-aside .fh5co-footer ul li a {
color: rgba(0, 0, 0, 0.7);
padding: 4px;
}
#fh5co-aside .fh5co-footer ul li a:hover, #fh5co-aside .fh5co-footer ul li a:active, #fh5co-aside .fh5co-footer ul li a:focus {
text-decoration: none;
outline: none;
color: #3ea6c5;
}
#fh5co-main {
width: 85%;
float: right;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
@media screen and (max-width: 1200px) {
#fh5co-main {
width: 70%;
}
}
@media screen and (max-width: 768px) {
#fh5co-main {
width: 100%;
}
}
#fh5co-main .fh5co-narrow-content {
position: relative;
width: 80%;
margin: 0 auto;
padding: 4em 0;
}
@media screen and (max-width: 768px) {
#fh5co-main .fh5co-narrow-content {
width: 100%;
padding: 3.5em 1em;
}
}
.fh5co-gallery {
position: relative;
margin-bottom: 7em;
float: left;
width: 100%;
}
.fh5co-gallery .gallery-item {
width: 25%;
position: relative;
overflow: hidden;
display: block;
float: left;
z-index: 110;
}
.fh5co-gallery .gallery-item img {
position: relative;
max-width: 100%;
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
-ms-transform: scale(1.2);
-o-transform: scale(1.2);
transform: scale(1.2);
-webkit-transition: 0.9s;
-o-transition: 0.9s;
transition: 0.9s;
}
@media screen and (max-width: 1200px) {
.fh5co-gallery .gallery-item {
width: 33.3333%;
}
}
@media screen and (max-width: 768px) {
.fh5co-gallery .gallery-item {
width: 50%;
}
}
@media screen and (max-width: 480px) {
.fh5co-gallery .gallery-item {
width: 100%;
}
}
.fh5co-gallery .gallery-item .overlay {
position: absolute;
right: 0;
left: 0;
bottom: 0;
top: 0;
z-index: 11;
vertical-align: middle;
padding-top: 30%;
visibility: hidden;
opacity: 0;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.fh5co-gallery .gallery-item .overlay h2, .fh5co-gallery .gallery-item .overlay span {
position: relative;
z-index: 12;
margin-bottom: 0;
text-align: center;
display: block;
-webkit-transition: 0.3s;
-o-transition: 0.3s;
transition: 0.3s;
}
.fh5co-gallery .gallery-item .overlay h2 {
color: #fff;
font-size: 26px;
font-weight: 300;
margin-bottom: 10px;
bottom: -15px;
}
@media screen and (max-width: 768px) {
.fh5co-gallery .gallery-item .overlay h2 {
font-size: 18px;
}
}
.fh5co-gallery .gallery-item .overlay span {
color: #3ea6c5;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
font-weight: 400;
bottom: -5px;
visibility: hidden;
opacity: 0;
}
.fh5co-gallery .gallery-item .overlay:before {
content: '';
position: absolute;
z-index: 1;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.5);
}
.fh5co-gallery .gallery-item:hover img {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
.fh5co-gallery .gallery-item:hover .overlay {
visibility: visible;
opacity: 1;
}
.fh5co-gallery .gallery-item:hover .overlay:before {
content: '';
position: absolute;
z-index: 1;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.5);
}
.fh5co-gallery .gallery-item:hover .overlay h2 {
bottom: 0px;
}
.fh5co-gallery .gallery-item:hover .overlay span {
visibility: visible;
opacity: 1;
bottom: 0px;
}
body.offcanvas {
overflow-x: hidden;
}
body.offcanvas #fh5co-aside {
-moz-transform: translateX(0);
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
width: 270px;
background: #fff;
z-index: 999;
position: fixed;
}
body.offcanvas #fh5co-main, body.offcanvas .fh5co-nav-toggle {
top: 0;
-moz-transform: translateX(270px);
-webkit-transform: translateX(270px);
-ms-transform: translateX(270px);
-o-transform: translateX(270px);
transform: translateX(270px);
}
.fh5co-services {
margin-top: 5px;
}
.fh5co-services ul {
list-style: none;
padding: 0;
margin: 0;
}
.work-pagination {
padding: 3em 0;
}
.work-pagination a {
color: #000;
}
.work-pagination a:hover {
color: #3ea6c5;
text-decoration: none;
}
@media screen and (max-width: 480px) {
.work-pagination span {
display: none;
}
}
.fh5co-border-bottom {
border-bottom: 1px solid #f0f0f0;
}
.fh5co-testimonial {
padding: 3em 0;
background: #3ea6c5;
position: relative;
}
@media screen and (max-width: 768px) {
.fh5co-testimonial {
padding: 3em 0;
}
}
.fh5co-testimonial .item {
color: white;
padding-left: 3em;
padding-right: 3em;
}
@media screen and (max-width: 768px) {
.fh5co-testimonial .item {
padding-left: 0em;
padding-right: 0em;
}
}
.fh5co-testimonial .item figure {
text-align: center;
}
.fh5co-testimonial .item figure img {
max-width: inherit;
width: 90px;
margin: 0 auto;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
border-radius: 50%;
}
.fh5co-testimonial .item p {
font-size: 30px;
}
@media screen and (max-width: 768px) {
.fh5co-testimonial .item p {
font-size: 28px;
}
}
@media screen and (max-width: 480px) {
.fh5co-testimonial .item p {
font-size: 20px;
}
}
.fh5co-testimonial .item .author {
font-size: 16px;
display: block;
}
.fh5co-counters {
padding: 1em 0;
background: #e6e6e6;
background-size: cover;
background-attachment: fixed;
}
.fh5co-counters .fh5co-counter {
font-size: 50px;
display: block;
color: #fff;
font-family: "Roboto", Arial, sans-serif;
width: 100%;
font-weight: 700;
margin-bottom: .5em;
}
.fh5co-counters .fh5co-counter-label {
color: #fff;
text-transform: uppercase;
font-size: 13px;
font-family: "Merriweather", Times, serif;
letter-spacing: 5px;
margin-bottom: 2em;
display: block;
}
.fh5co-lead {
font-size: 24px;
line-height: 1.5;
}
.fh5co-heading-colored {
color: #3ea6c5;
}
.fh5co-cards {
padding: 1em 0;
background: #e6e6e6;
}
@media screen and (max-width: 768px) {
.fh5co-cards {
padding: 1em 0;
}
}
.fh5co-cards .fh5co-flex-wrap {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
flex-wrap: wrap;
-webkit-flex-wrap: wrap;
-moz-flex-wrap: wrap;
}
.fh5co-cards .fh5co-flex-wrap > div {
width: 49.5%;
margin-right: 1%;
background: #fff;
padding: 30px;
margin-bottom: 10px;
}
.fh5co-cards .fh5co-flex-wrap > div:nth-of-type(1) {
float: left;
}
.fh5co-cards .fh5co-flex-wrap > div:nth-of-type(2) {
float: right;
margin-right: 0%;
}
@media screen and (max-width: 992px) {
.fh5co-cards .fh5co-flex-wrap > div {
width: 100%;
margin-right: 0;
}
}
.fh5co-cards .fh5co-flex-wrap .fh5co-card p:last-child {
margin-bottom: 0;
}
.fh5co-cards .fh5co-flex-wrap .fh5co-card h5 {
text-transform: uppercase;
font-size: 12px;
letter-spacing: .2em;
padding: 4px 8px;
background: #ebebeb;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
}
.fh5co-counter .fh5co-number {
font-size: 100px;
color: #3ea6c5;
font-weight: 400;
margin: 0;
padding: 0;
line-height: .7;
}
.fh5co-counter .fh5co-number.fh5co-left {
float: left;
width: 30%;
}
@media screen and (max-width: 768px) {
.fh5co-counter .fh5co-number.fh5co-left {
width: 100%;
line-height: 1.2;
}
}
.fh5co-counter .fh5co-text {
float: right;
text-align: left;
width: 70%;
}
@media screen and (max-width: 768px) {
.fh5co-counter .fh5co-text {
width: 100%;
text-align: center;
}
}
.fh5co-counter .fh5co-text h3 {
margin: 0;
padding: 0;
position: relative;
}
.fh5co-counter .fh5co-text h3.border-bottom:after {
content: "";
width: 50px;
}
.fh5co-social {
padding: 0;
margin: 0;
text-align: center;
}
.fh5co-social li {
padding: 0;
margin: 0;
list-style: none;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
}
.fh5co-social li a {
font-size: 22px;
color: #000;
padding: 10px;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
-ms-border-radius: 7px;
border-radius: 7px;
}
@media screen and (max-width: 768px) {
.fh5co-social li a {
padding: 10px 8px;
}
}
.fh5co-social li a:hover {
color: #3ea6c5;
}
.fh5co-social li a:hover, .fh5co-social li a:active, .fh5co-social li a:focus {
outline: none;
text-decoration: none;
color: #3ea6c5;
}
#map {
width: 100%;
height: 700px;
}
@media screen and (max-width: 768px) {
#map {
height: 200px;
}
}
.fh5co-more-contact {
background: #fafafa;
}
.fh5co-feature {
text-align: left;
width: 100%;
float: left;
padding: 20px;
}
.fh5co-feature .fh5co-icon {
float: left;
width: 10%;
display: block;
margin-top: 5px;
}
.fh5co-feature .fh5co-icon i {
color: #3ea6c5;
font-size: 70px;
}
@media screen and (max-width: 1200px) {
.fh5co-feature .fh5co-icon i {
font-size: 40px;
}
}
.fh5co-feature.fh5co-feature-sm .fh5co-icon i {
color: #3ea6c5;
font-size: 28px;
}
@media screen and (max-width: 1200px) {
.fh5co-feature.fh5co-feature-sm .fh5co-icon i {
font-size: 28px;
}
}
.fh5co-feature .fh5co-text {
float: right;
width: 80%;
}
@media screen and (max-width: 768px) {
.fh5co-feature .fh5co-text {
width: 82%;
}
}
@media screen and (max-width: 480px) {
.fh5co-feature .fh5co-text {
width: 72%;
}
}
.fh5co-feature .fh5co-text h2, .fh5co-feature .fh5co-text h3 {
margin: 0;
padding: 0;
}
.fh5co-feature .fh5co-text h3 {
font-weight: 300;
margin-bottom: 20px;
color: rgba(0, 0, 0, 0.8);
font-size: 14px;
letter-spacing: .2em;
text-transform: uppercase;
}
.fh5co-heading {
font-size: 45px;
margin-bottom: 1em;
}
.fh5co-heading.fh5co-light {
color: #fff;
}
.fh5co-heading span {
display: block;
}
@media screen and (max-width: 768px) {
.fh5co-heading {
font-size: 30px;
margin-bottom: 1em;
}
}
.fh5co-staff img {
margin-bottom: 1.5em;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
-ms-border-radius: 7px;
border-radius: 7px;
}
.fh5co-staff h3 {
margin: 0 0 10px 0;
}
.fh5co-staff h4 {
margin: 0 0 20px 0;
font-weight: 300;
color: rgba(0, 0, 0, 0.4);
}
.chart {
width: 160px;
height: 160px;
margin: 0 auto 30px auto;
position: relative;
text-align: center;
}
.chart span {
position: absolute;
top: 50%;
left: 0;
margin-top: -30px;
width: 100%;
}
.chart span strong {
display: block;
}
.chart canvas {
position: absolute;
left: 0;
top: 0;
}
/* Owl Override Style */
.owl-carousel .owl-controls,
.owl-carousel-posts .owl-controls {
margin-top: 0;
}
.owl-carousel .owl-controls .owl-nav .owl-next,
.owl-carousel .owl-controls .owl-nav .owl-prev,
.owl-carousel-posts .owl-controls .owl-nav .owl-next,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev {
top: 50%;
margin-top: -29px;
z-index: 9999;
position: absolute;
-webkit-transition: 0.2s;
-o-transition: 0.2s;
transition: 0.2s;
}
.owl-carousel-posts .owl-controls .owl-nav .owl-next,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev {
top: 24%;
}
.owl-carousel .owl-controls .owl-nav .owl-next,
.owl-carousel-posts .owl-controls .owl-nav .owl-next {
right: -40px;
}
.owl-carousel .owl-controls .owl-nav .owl-next:hover,
.owl-carousel-posts .owl-controls .owl-nav .owl-next:hover {
margin-right: -10px;
}
.owl-carousel .owl-controls .owl-nav .owl-prev,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev {
left: -40px;
}
.owl-carousel .owl-controls .owl-nav .owl-prev:hover,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev:hover {
margin-left: -10px;
}
.owl-carousel-posts .owl-controls .owl-nav .owl-next {
right: -50px;
}
@media screen and (max-width: 768px) {
.owl-carousel-posts .owl-controls .owl-nav .owl-next {
right: 0px;
}
}
.owl-carousel-posts .owl-controls .owl-nav .owl-prev {
left: -50px;
}
@media screen and (max-width: 768px) {
.owl-carousel-posts .owl-controls .owl-nav .owl-prev {
left: 0px;
}
}
.owl-carousel-posts .owl-controls .owl-nav .owl-next i,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev i,
.owl-carousel-fullwidth .owl-controls .owl-nav .owl-next i,
.owl-carousel-fullwidth .owl-controls .owl-nav .owl-prev i {
color: #444;
}
.owl-carousel-posts .owl-controls .owl-nav .owl-next:hover i,
.owl-carousel-posts .owl-controls .owl-nav .owl-prev:hover i,
.owl-carousel-fullwidth .owl-controls .owl-nav .owl-next:hover i,
.owl-carousel-fullwidth .owl-controls .owl-nav .owl-prev:hover i {
color: #000;
}
.owl-carousel-fullwidth.fh5co-light-arrow .owl-controls .owl-nav .owl-next i,
.owl-carousel-fullwidth.fh5co-light-arrow .owl-controls .owl-nav .owl-prev i {
color: #fff;
}
.owl-carousel-fullwidth.fh5co-light-arrow .owl-controls .owl-nav .owl-next:hover i,
.owl-carousel-fullwidth.fh5co-light-arrow .owl-controls .owl-nav .owl-prev:hover i {
color: #fff;
}
@media screen and (max-width: 768px) {
.owl-theme .owl-controls .owl-nav {
display: none;
}
}
.owl-theme .owl-controls .owl-nav [class*="owl-"] {
background: none !important;
}
.owl-theme .owl-controls .owl-nav [class*="owl-"] i {
font-size: 30px;
}
.owl-theme .owl-controls .owl-nav [class*="owl-"] i:hover, .owl-theme .owl-controls .owl-nav [class*="owl-"] i:focus {
background: none !important;
}
.owl-theme .owl-controls .owl-nav [class*="owl-"]:hover, .owl-theme .owl-controls .owl-nav [class*="owl-"]:focus {
background: none !important;
}
.owl-theme .owl-dots {
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
}
.owl-carousel-fullwidth.owl-theme .owl-dots {
bottom: 0;
margin-bottom: -2.5em;
}
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
background: #fff;
-webkit-transition: 0.2s;
-o-transition: 0.2s;
transition: 0.2s;
border: 3px solid transparent;
}
.owl-theme .owl-dots .owl-dot span:hover {
background: none;
border: 3px solid #3ea6c5;
}
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: transparent;
height: 10px;
border: 2px solid #fff;
}
.btn {
margin-right: 4px;
margin-bottom: 4px;
font-family: "Roboto", Arial, sans-serif;
font-size: 18px;
font-weight: 400;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
-ms-border-radius: 50px;
border-radius: 50px;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
padding: 8px 20px !important;
}
.btn.btn-sm {
padding: 4px 15px !important;
}
.btn.btn-md {
padding: 8px 20px !important;
}
.btn.btn-lg {
padding: 18px 36px !important;
}
.btn:hover, .btn:active, .btn:focus {
box-shadow: none !important;
outline: none !important;
}
.btn-primary {
background: #3ea6c5;
color: #fff;
border: 2px solid #3090ad;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
background: #69cceb !important;
border-color: #1a99c0 !important;
}
.btn-primary.btn-outline {
background: transparent;
color: #4ea5bb;
border: 2px solid #3ea6c5;
}
.btn-primary.btn-outline:hover, .btn-primary.btn-outline:focus, .btn-primary.btn-outline:active {
background: #3ea6c5;
color: #fff;
}
.btn-success {
background: #72badb;
color: #fff;
border: 2px solid #3ea6c5;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
background: #4cae4c !important;
border-color: #4cae4c !important;
}
.btn-success.btn-outline {
background: transparent;
color: #5cb85c;
border: 2px solid #5cb85c;
}
.btn-success.btn-outline:hover, .btn-success.btn-outline:focus, .btn-success.btn-outline:active {
background: #5cb85c;
color: #fff;
}
.btn-info {
background: #5bc0de;
color: #fff;
border: 2px solid #5bc0de;
}
.btn-info:hover, .btn-info:focus, .btn-info:active {
background: #46b8da !important;
border-color: #46b8da !important;
}
.btn-info.btn-outline {
background: transparent;
color: #5bc0de;
border: 2px solid #5bc0de;
}
.btn-info.btn-outline:hover, .btn-info.btn-outline:focus, .btn-info.btn-outline:active {
background: #5bc0de;
color: #fff;
}
.btn-warning {
background: #f0ad4e;
color: #fff;
border: 2px solid #f0ad4e;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
background: #eea236 !important;
border-color: #eea236 !important;
}
.btn-warning.btn-outline {
background: transparent;
color: #f0ad4e;
border: 2px solid #f0ad4e;
}
.btn-warning.btn-outline:hover, .btn-warning.btn-outline:focus, .btn-warning.btn-outline:active {
background: #f0ad4e;
color: #fff;
}
.btn-danger {
background: #d9534f;
color: #fff;
border: 2px solid #d9534f;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
background: #d43f3a !important;
border-color: #d43f3a !important;
}
.btn-danger.btn-outline {
background: transparent;
color: #d9534f;
border: 2px solid #d9534f;
}
.btn-danger.btn-outline:hover, .btn-danger.btn-outline:focus, .btn-danger.btn-outline:active {
background: #d9534f;
color: #fff;
}
.btn-outline {
background: none;
border: 2px solid gray;
font-size: 16px;
-webkit-transition: 0.3s;
-o-transition: 0.3s;
transition: 0.3s;
}
.btn-outline:hover, .btn-outline:focus, .btn-outline:active {
box-shadow: none;
}
.form-control {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-shadow: none;
background: transparent;
border: 2px solid rgba(0, 0, 0, 0.1);
height: 54px;
font-size: 18px;
font-weight: 300;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
-ms-border-radius: 7px;
border-radius: 7px;
}
.form-control:active, .form-control:focus {
outline: none;
box-shadow: none;
border-color: #7ac143;
}
#message {
height: 130px;
}
.fh5co-nav-toggle {
cursor: pointer;
text-decoration: none;
}
.fh5co-nav-toggle.active i::before, .fh5co-nav-toggle.active i::after {
background: #000;
}
.fh5co-nav-toggle.dark.active i::before, .fh5co-nav-toggle.dark.active i::after {
background: #000;
}
.fh5co-nav-toggle:hover, .fh5co-nav-toggle:focus, .fh5co-nav-toggle:active {
outline: none;
border-bottom: none !important;
}
.fh5co-nav-toggle i {
position: relative;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
width: 30px;
height: 2px;
color: #000;
font: bold 14px/.4 Helvetica;
text-transform: uppercase;
text-indent: -55px;
background: #000;
transition: all .2s ease-out;
}
.fh5co-nav-toggle i::before, .fh5co-nav-toggle i::after {
content: '';
width: 30px;
height: 2px;
background: #000;
position: absolute;
left: 0;
-webkit-transition: 0.2s;
-o-transition: 0.2s;
transition: 0.2s;
}
.fh5co-nav-toggle.dark i {
position: relative;
color: #000;
background: #000;
transition: all .2s ease-out;
}
.fh5co-nav-toggle.dark i::before, .fh5co-nav-toggle.dark i::after {
background: #000;
-webkit-transition: 0.2s;
-o-transition: 0.2s;
transition: 0.2s;
}
.fh5co-nav-toggle i::before {
top: -7px;
}
.fh5co-nav-toggle i::after {
bottom: -7px;
}
.fh5co-nav-toggle:hover i::before {
top: -10px;
}
.fh5co-nav-toggle:hover i::after {
bottom: -10px;
}
.fh5co-nav-toggle.active i {
background: transparent;
}
.fh5co-nav-toggle.active i::before {
top: 0;
-webkit-transform: rotateZ(45deg);
-moz-transform: rotateZ(45deg);
-ms-transform: rotateZ(45deg);
-o-transform: rotateZ(45deg);
transform: rotateZ(45deg);
}
.fh5co-nav-toggle.active i::after {
bottom: 0;
-webkit-transform: rotateZ(-45deg);
-moz-transform: rotateZ(-45deg);
-ms-transform: rotateZ(-45deg);
-o-transform: rotateZ(-45deg);
transform: rotateZ(-45deg);
}
.fh5co-nav-toggle {
position: fixed;
left: 0;
top: 0px;
z-index: 9999;
cursor: pointer;
opacity: 1;
visibility: hidden;
padding: 20px;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
@media screen and (max-width: 768px) {
.fh5co-nav-toggle {
opacity: 1;
visibility: visible;
}
}
@media screen and (max-width: 480px) {
.col-xxs-12 {
float: none;
width: 100%;
}
}
.row-bottom-padded-lg {
padding-bottom: 7em;
}
@media screen and (max-width: 768px) {
.row-bottom-padded-lg {
padding-bottom: 1em;
}
}
.row-bottom-padded-md {
padding-bottom: 4em;
}
@media screen and (max-width: 768px) {
.row-bottom-padded-md {
padding-bottom: 1em;
}
}
.row-bottom-padded-sm {
padding-bottom: 1em;
}
@media screen and (max-width: 768px) {
.row-bottom-padded-sm {
padding-bottom: 1em;
}
}
.js .animate-box {
opacity: 0;
}
.booger{
justify-content: center;
align-content: center;
align-items: center;
display: inline;
list-style-type: none;
float: left;
width: 5em;
text-align: center;
margin-left: -2.5em
}
.cum {
padding-left: 30%;
display: inline-flex;
list-style-type: none;
width: 100em;
}
.jones {
width: 35px;
}
.js-fh5co-nav-toggle {
background-color: #3ea6c5;
}
/*# sourceMappingURL=style.css.map */
//init speechsyth api
const synth = window.speechSynthesis;
//dom elements
const textForm = document.querySelector('form');
const textInput = document.querySelector('#text-input');
const voiceSelect = document.querySelector('#voice-select');
const rate = document.querySelector('#rate');
const rateValue = document.querySelector('#rate-value');
const pitch = document.querySelector('#pitch');
const pitchValue = document.querySelector('#pitch-value');
//init voices array
let voices = [];
const getVoices = ()=> {
voices = synth.getVoices();
//loop through voices and create an option for each one
voices.forEach(voice => {
//create option element
const option = document.createElement('option');
//fill option with the voice and language
option.textContent = voice.name + '(' + voice.lang + ')';
//set needed option attributes
option.setAttribute('data-lang', voice.lang);
option.setAttribute('data-name', voice.name);
voiceSelect.appendChild(option);
});
};
getVoices();
if(synth.onvoiceschanged !== undefined) {
synth.onvoiceschanged = getVoices;
}
//speak
const speak = () => {
//CHECK IF SPEAKING
if(synth.speaking) {
console.error('Already speaking...');
return;
}
if(textInput.value !== '') {
//get speak text
const speakText = new SpeechSynthesisUtterance(textInput.value);
//speak end
speakText.onend = e => {
console.log('Done speaking...');
}
//speak error
speakText.onerror = e => {
console.log('something went wrong');
}
//selected voice
const selectedVoice = voiceSelect.selectedOptions[0]
.getAttribute('data-name');
// loop through voices
voices.forEach(voice => {
if(voice.name === selectedVoice) {
speakText.voice = voice;
}
});
//set rate
speakText.rate = rate.value;
speakText.pitch = pitch.value;
//speak
synth.speak(speakText);
}
};
//event listener
//text form submit
textForm.addEventListener('submit', e => {
e.preventDefault();
speak();
textInput.blur();
});
//rate value change
rate.addEventListener('change', e => (rateValue.textContent =
rate.value))
//pitch value change
pitch.addEventListener('change', e => (pitchValue.textContent =
pitch.value))
//voice select change
voiceSelect.addEventListener('change', e => speak ());
Also see: Tab Triggers