Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Updated to v3.4.2
Browse files Browse the repository at this point in the history
- Updated slideshow
    1) now waits for yt, vimeo video to end
    2) added progressbar
- Revised transitions
- Slightly updated visuals
- Fixed IE11 issues
  • Loading branch information
fancyapps committed Sep 21, 2018
1 parent a829fab commit 48c7be6
Show file tree
Hide file tree
Showing 13 changed files with 992 additions and 739 deletions.
75 changes: 43 additions & 32 deletions dist/jquery.fancybox.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
body.compensate-for-scrollbar {
overflow: hidden;
-ms-overflow-style: none; }
overflow: hidden; }

.fancybox-active {
height: auto; }
Expand Down Expand Up @@ -100,16 +99,16 @@ body.compensate-for-scrollbar {
.fancybox-stage {
direction: ltr;
overflow: visible;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transform: translateZ(0);
transform: translateZ(0);
z-index: 99994; }

.fancybox-is-open .fancybox-stage {
overflow: hidden; }

.fancybox-slide {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
/* Using without prefix would break IE11 */
display: none;
height: 100%;
left: 0;
Expand Down Expand Up @@ -145,11 +144,9 @@ body.compensate-for-scrollbar {
z-index: 99995; }

.fancybox-slide--image {
overflow: hidden;
padding: 44px 0 0 0; }

.fancybox-slide--image {
overflow: visible; }

.fancybox-slide--image::before {
display: none; }

Expand All @@ -172,7 +169,6 @@ body.compensate-for-scrollbar {
-webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.14, 1);
animation-timing-function: cubic-bezier(0.5, 0, 0.14, 1);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
background: transparent;
background-repeat: no-repeat;
background-size: 100% 100%;
Expand Down Expand Up @@ -286,11 +282,13 @@ body.compensate-for-scrollbar {
background: rgba(30, 30, 30, 0.6);
border: 0;
border-radius: 0;
box-shadow: none;
cursor: pointer;
display: inline-block;
height: 44px;
margin: 0;
padding: 10px;
position: relative;
transition: color .2s;
vertical-align: top;
visibility: inherit;
Expand Down Expand Up @@ -337,6 +335,25 @@ body.compensate-for-scrollbar {
.fancybox-button--fsexit svg:nth-child(1) {
display: none; }

.fancybox-progress {
background: #ff5268;
height: 2px;
left: 0;
position: absolute;
right: 0;
top: 0;
-webkit-transform: scaleX(0);
-ms-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: 0;
-ms-transform-origin: 0;
transform-origin: 0;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
transition-timing-function: linear;
z-index: 99998; }

/* Close button on the top right corner of html content */
.fancybox-close-small {
background: transparent;
Expand Down Expand Up @@ -434,37 +451,31 @@ body.compensate-for-scrollbar {

/* Loading indicator */
.fancybox-loading {
-webkit-animation: fancybox-rotate .8s infinite linear;
animation: fancybox-rotate .8s infinite linear;
-webkit-animation: fancybox-rotate 1s linear infinite;
animation: fancybox-rotate 1s linear infinite;
background: transparent;
border: 6px solid rgba(100, 100, 100, 0.5);
border-radius: 100%;
border-top-color: #fff;
height: 60px;
border: 4px solid #888;
border-bottom-color: #fff;
border-radius: 50%;
height: 50px;
left: 50%;
margin: -30px 0 0 -30px;
opacity: .6;
margin: -25px 0 0 -25px;
opacity: .7;
padding: 0;
position: absolute;
top: 50%;
width: 60px;
width: 50px;
z-index: 99999; }

@-webkit-keyframes fancybox-rotate {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); }
to {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }

@keyframes fancybox-rotate {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); }
to {
-webkit-transform: rotate(359deg);
transform: rotate(359deg); } }
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }

/* Transition effects */
.fancybox-animated {
Expand Down Expand Up @@ -664,7 +675,7 @@ body.compensate-for-scrollbar {

/* Thumbs */
.fancybox-thumbs {
background: #fff;
background: #ddd;
bottom: 0;
display: none;
margin: 0;
Expand Down Expand Up @@ -737,7 +748,7 @@ body.compensate-for-scrollbar {
width: 100px; }

.fancybox-thumbs__list a::before {
border: 4px solid #4ea7f9;
border: 6px solid #ff5268;
bottom: 0;
content: '';
left: 0;
Expand Down
Loading

0 comments on commit 48c7be6

Please sign in to comment.