Skip to content

Commit

Permalink
V1.7 with animations
Browse files Browse the repository at this point in the history
  • Loading branch information
e-labInnovations committed Jul 15, 2022
1 parent 0e80146 commit 505d5c5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jquery'), 'version' => '062ad328e0638870eff8994ed87aaa75');
<?php return array('dependencies' => array('jquery'), 'version' => 'c3d380487fa6897455d1089d983ede92');
31 changes: 14 additions & 17 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$version = wp_get_theme()->get('Version');
$version = rand(111,9999); //For development (Reload css)
// $version = rand(111,9999); //For development (Reload css)

//Theme support
function ashad_theme_support() {
Expand Down
17 changes: 8 additions & 9 deletions src/modules/zmain.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,13 @@ class zmain {
updateURL: false // Boolean. Whether or not to update the URL with the anchor hash on scroll
});

var t1 = gsap.timeline({defaults: {duration: 1}})

// const textWrapper = document.querySelector('.hero .title');
// textWrapper.innerHTML = textWrapper.textContent.replace(/\S/g, "<span class='letter'>$&</span>");

//Front page hero
var t1 = gsap.timeline({defaults: {duration: 1}})
t1.from('.hero', { opacity: 0, y:-50 })
.from('.box-item', { opacity: 0, y:-50, ease: 'Power2.easeOut', stagger: 0.3 }, '-=0.3');

const postTitle = gsap.timeline({ yoyo: true });

postTitle.from(".post-title", { duration: 1, scaleX: 0, transformOrigin: "left", ease: "expo.inOut" })
.from( ".post-title", { y: "100%", duration: 0.8, ease: "expo.out" }, "-=0.2");

//Front page view button
gsap.fromTo(".pagination .buttons", {
boxShadow: "0 0 5px 0px rgba(255, 255, 255, 0.4)"
}, {
Expand All @@ -114,6 +108,11 @@ class zmain {
duration: 1
});

//Single post title and thumbnail
const postTitle = gsap.timeline({ yoyo: true });
postTitle.from(".post-title", { duration: 1, scaleX: 0, transformOrigin: "left", ease: "expo.inOut" })
// .from(".post-title", { y: "100%", duration: 0.8, ease: "expo.out" }, "-=0.2")

}

close_search() {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: Ashad
Text Domain: Ashad
Version: 1.6
Version: 1.7
Description: Theme for e-lab innovations
Tags: e-lab, innovations, ashad
Author: Mohammed Ashad
Expand Down

0 comments on commit 505d5c5

Please sign in to comment.