aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/components/_gallery.scss
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@yahoo.com> 2020-08-04 16:27:53 -0700
committerGravatar Anshul Gupta <ansg191@yahoo.com> 2020-08-04 16:27:53 -0700
commit3ec2f4a87d8509aed4f42975d8a03b75e78c5218 (patch)
tree96b172b7b49476567331ed4b0758383dfb7870a4 /assets/sass/components/_gallery.scss
parente37306449b036fc192ddee5db78d3a30197a8f21 (diff)
downloadPortfolio-master.tar.gz
Portfolio-master.tar.zst
Portfolio-master.zip
Import TemplateHEADmaster
Diffstat (limited to 'assets/sass/components/_gallery.scss')
-rw-r--r--assets/sass/components/_gallery.scss72
1 files changed, 72 insertions, 0 deletions
diff --git a/assets/sass/components/_gallery.scss b/assets/sass/components/_gallery.scss
new file mode 100644
index 0000000..27d4e84
--- /dev/null
+++ b/assets/sass/components/_gallery.scss
@@ -0,0 +1,72 @@
+///
+/// Big Picture by Pixelarity
+/// pixelarity.com | hello@pixelarity.com
+/// License: pixelarity.com/license
+///
+
+/* Gallery */
+
+ .gallery {
+ @include vendor('display', 'flex');
+ @include vendor('flex-wrap', 'wrap');
+ width: 45em;
+ max-width: 100%;
+ margin: 0 auto _size(element-margin) auto;
+
+ article {
+ @include vendor('transition', (
+ 'transform 1s ease',
+ 'opacity 1s ease'
+ ));
+ @include vendor('transform', 'translateX(0)');
+ width: 50%;
+ position: relative;
+ opacity: 1.0;
+
+ .image {
+ margin: 0;
+ display: block;
+ }
+
+ @for $i from 1 through 23 {
+ &:nth-last-child(#{$i}n) {
+ @include vendor('transition-delay', '#{(0.05s * $i)}');
+ }
+
+ &:nth-last-child(#{$i + 1}n) {
+ @include vendor('transition-delay', '#{(0.05s * $i)}');
+ }
+ }
+ }
+
+ &.inactive {
+ article {
+ opacity: 0;
+
+ &.from-left {
+ @include vendor('transform', 'translateX(-14em)');
+ }
+
+ &.from-right {
+ @include vendor('transform', 'translateX(14em)');
+ }
+
+ &.from-top {
+ @include vendor('transform', 'translateY(-7em)');
+ }
+
+ &.from-bottom {
+ @include vendor('transform', 'translateY(7em)');
+ }
+ }
+ }
+
+ @include breakpoint('<=xsmall') {
+ @include vendor('flex-wrap', 'nowrap');
+ @include vendor('flex-direction', 'column');
+
+ article {
+ width: 100%;
+ }
+ }
+ } \ No newline at end of file