-github's People
-github's Issues
Animate onLoad Headers
$(window).load(function() {
$(".top_text h1").animated("fadeInDown" , "fadeOutUp");
$(".top_text p").animated("fadeInUp", "fadeOutDown");
});
Center Headers
Александр Прокопский
Web-дизайнер / Front-End разработчик
</div>
</div>
</div>
CSS:
.top_wrapper {
display: table;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 10; }
.top_wrapper .top_descr {
display: table-row; }
.top_wrapper .top_descr .top_centered {
display: table-cell;
text-align: center;
vertical-align: middle; }
.top_wrapper .top_text {
display: inline-block;
-webkit-transition: all 1s ease;
transition: all 1s ease; }
.top_wrapper .top_text p {
margin: 0;
text-transform: uppercase;
-webkit-animation-delay: 1s;
animation-delay: 1s; }
.top_wrapper .top_text h1 {
display: inline-block;
padding: 10px 35px;
color: #fff;
border: 8px solid #fff;
text-transform: uppercase;
font-weight: bold;
font-size: 2.8em;
background-color: rgba(0, 0, 0, 0.1);
margin-left: 20px;
margin-right: 20px;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s; }
PRE-LOADER
.loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999; }
.loader .loader_inner {
background-image: url("../img/preloader.gif");
background-size: cover;
background-repeat: no-repeat;
background-posirion: center center;
background-color: #fff;
height: 60px;
width: 60px;
margin-top: -30px;
margin-left: -30px;
left: 50%;
top: 50%;
position: absolute; }
$(window).load(function() {
$(".loader_inner").fadeOut();
$(".loader").delay(400).fadeOut("slow");
});
Open menu on click
$(".toggle_mnu").click(function() {
if ($(".top_mnu").is(":visible")) {
$(".top_text").css("opacity", "1");
$(".top_mnu").fadeOut(600);
$(".top_mnu li a").removeClass("fadeInUp animated");
} else {
$(".top_text").css("opacity", ".1");
$(".top_mnu").fadeIn(600);
$(".top_mnu li a").addClass("fadeInUp animated");
};
});
$(".top_mnu ul a").click(function() {
$(".top_mnu").fadeOut(600);
$(".sandwich").toggleClass("active");
$(".top_text").css("opacity", "1");
}).append("<span>");
Resize JS
function heightDetect(){
$(".main_head").css("height",$(window).height());
}
heightDetect();
$(window).resize(function()
{
heightDetect();
});
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.