-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZigZag Entrance Animation [TMZ-216] #153
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # modules/content/classes/render/widget-zig-zag-render.php # webpack.config.js
…zag-entrance-animation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
modules/content/widgets/cta.php
Outdated
public function get_script_depends(): array { | ||
return [ 'helloplus-content-fe' ]; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was an older version. Removing it.
modules/content/widgets/hero.php
Outdated
public function get_script_depends(): array { | ||
return [ 'helloplus-content-fe' ]; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
$is_even = $remainder === $key % 2; | ||
|
||
$item_class = self::ITEM_CLASSNAME; | ||
|
||
$item_class .= ' row' . ( $is_even ? '-even' : '-odd' ); | ||
|
||
$is_even_index = 0 === ( $key + 1 ) % 2; | ||
|
||
if ( $has_alternate_icon_color && $is_even_index ) { | ||
$item_class .= ' has-alternate-icon-color'; | ||
} | ||
|
||
$wrapper_classnames = 'ehp-zigzag__item-wrapper'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need the row-odd
/ row-even
classes anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change addressed
} | ||
|
||
$this->widget->add_render_attribute( 'zigzag-item-wrapper-' . $key, [ | ||
'class' => $wrapper_classnames, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$wrapper_classnames
should be an array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change addressed
$remainder = 'left' === $first_zigzag_direction ? 1 : 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
No description provided.