Skip to content
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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

mserino
Copy link
Contributor

@mserino mserino commented Jan 7, 2025

No description provided.

@mserino mserino requested a review from nuritsha January 7, 2025 11:40
@mserino mserino self-assigned this Jan 7, 2025
Copy link
Collaborator

@nuritsha nuritsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

Comment on lines 49 to 52
public function get_script_depends(): array {
return [ 'helloplus-content-fe' ];
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

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.

Comment on lines 51 to 54
public function get_script_depends(): array {
return [ 'helloplus-content-fe' ];
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Comment on lines 62 to 75
$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';

Copy link
Collaborator

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

Copy link
Contributor Author

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,
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change addressed

Comment on lines 56 to 57
$remainder = 'left' === $first_zigzag_direction ? 1 : 0;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no longer required

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants