Skip to content

Conversation

@powerivq
Copy link
Contributor

Experiments:

  1. Control
  2. Auto advance + old CTA
  3. Auto advance + new CTA w/ animation
  4. Auto advance + new CTA w/o animation

Experiment IDs need to be updated before merging.

@amp-owners-bot
Copy link

Hey @Jiaming-X! These files were changed:

extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js

Hey @jeffkaufman! These files were changed:

extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js

Hey @gmajoulet, @newmuis! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.css
extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js
extensions/amp-story/1.0/amp-story-page.js
extensions/amp-story/1.0/amp-story.js
extensions/amp-story/1.0/progress-bar.js
extensions/amp-story/1.0/test/test-amp-story-progress-bar.js

Hey @mszylkowski! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.css
extensions/amp-story-page-attachment/0.1/amp-story-open-page-attachment.js

Copy link
Member

@calebcordry calebcordry left a comment

Choose a reason for hiding this comment

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

Experiment setup LGTM. Will defer to the other folks on the best way to disable animation

);
if (
(!isExperimentOn(this.win, 'story-ad-auto-advance') && this.isAd()) ||
((!storyAdSegmentBranch ||
Copy link
Member

Choose a reason for hiding this comment

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

nit: these complex if statements here and below are a bit hard to parse, maybe pulling to a named var will help.

@powerivq powerivq force-pushed the launch-auto-advance-agin branch from b57e029 to d0ec5d2 Compare April 14, 2022 19:20
@powerivq powerivq force-pushed the launch-auto-advance-agin branch from d0ec5d2 to 50fd083 Compare April 14, 2022 19:21
animation: i-amphtml-tap-scale var(--i-amphtml-page-attachment-ui-animation-duration) var(--i-amphtml-page-attachment-ui-animation-delay) both !important;
}

.i-amphtml-story-page-open-attachment-outlink-no-animation-exp.i-amphtml-story-page-open-attachment-outlink-no-animation-exp[active] {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to avoid the animations above, it's better to do .i-amphtml-story-page-open-attachment-outlink[active]:not(.i-amphtml-story-page-open-attachment-outlink-no-animation-exp) {animation: i-amphtml-tap-scale...} instead of overriding it with animation: none on a new property. Same below.

const openImgAttr = attachmentEl.getAttribute('cta-image');

const noAnimation =
getExperimentBranch(getWin(pageEl), 'story-ad-auto-advance') == 'c';
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this constant c from? Do you need to replace it with the correct value from StoryAdSegmentExp.AUTO_ADVANCE_NEW_CTA_NOT_ANIMATED?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants