Skip to content
Snippets Groups Projects
Commit 451377d8 authored by Peyton Tanzillo's avatar Peyton Tanzillo
Browse files

Slide effect for search content

parent 8ff718f9
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,7 @@ $(document).ready(function() {
$('.page-content').slideUp(300);
cameFromSearch = false;
} else {
$('.search-content').hide()
$('.search-content').slideUp(300);
cameFromSearch = true;
}
$('.tv-show-page').show();
......@@ -381,8 +381,10 @@ $(document).ready(function() {
$(document).on('click', '#show-back-arrow', function() {
if (cameFromSearch) {
$('.search-content').show();
$('.tv-show-page').hide();
$('.search-content').slideDown();
setTimeout(function() {
$('.tv-show-page').toggle();
}, 400);
} else {
$('.page-content').slideDown();
setTimeout(function() {
......
......@@ -507,7 +507,7 @@ input:checked + .slider-round:before {
.search-content {
background-color: #1a212d;
position: relative;
z-index: 1;
z-index: 3;
}
#search-back-arrow {
......@@ -524,9 +524,6 @@ input:checked + .slider-round:before {
margin-top: 200px;
position: relative;
text-align: center;
}
#not-found {
font-family: 'Roboto', sans-serif;
font-weight: 700;
font-size: 40px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment