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

Outlook.com adds "Joyful Animations" #59

Open
hteumeuleu opened this issue Apr 9, 2019 · 6 comments
Open

Outlook.com adds "Joyful Animations" #59

hteumeuleu opened this issue Apr 9, 2019 · 6 comments
Labels

Comments

@hteumeuleu
Copy link
Owner

@hteumeuleu hteumeuleu commented Apr 9, 2019

About six months ago, Microsoft introduced a new feature in Outlook.com called "Joyful Animations". It is turned on by default but can be turned off per user settings. According to Microsoft:

Outlook automatically shows a celebratory burst of colorful shapes in the reading pane when you open a message that includes words like Happy Birthday and Congratulations.

Screenshot of Outlook.com settings showing the Joyful Animations option

The feature highlights certain keywords with a different background color and text color. When hovering the keywords, a confetti animation appears.

An example of confetti animation in Outlook.com

Based on the owa.ReadingPane.mail.js file on Outlook.com, this only applies to three expressions (not case sensitive):

  • Happy Birthday
  • Congrats
  • Congratulations

The following code in an email:

<h1 class="foo">Congratulations</h1>

…will be transformed by Outlook.com into:

<h1 class="x_foo"><span data-markjs="true" class="markim8ebdahz _2Th5e9ZyZUAFfXZXt-uLkQ">Congratulations</span></h1>

I haven't found a way to prevent this transformation. However, the styles can be overrided by adding the following rule:

<style>
[class="x_foo"] span { background: inherit !important; color:inherit !important; }
</style>
@truongoi
Copy link

@truongoi truongoi commented Jan 8, 2021

Hey, the issue is still happening with that <style>. Hope you find a new solution.

Loading

@hteumeuleu
Copy link
Owner Author

@hteumeuleu hteumeuleu commented Jan 9, 2021

I just retested and the above solution still works. Here’s the full code I sent using Parcel.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Joyful animations</title>
	<style>
		[class="x_foo"] span { background: inherit !important; color:inherit !important; }
	</style>
</head>
<body>
	<h1 class="foo">Congratulations</h1>
</body>
</html>

Loading

@rootiq
Copy link

@rootiq rootiq commented Jul 6, 2021

This CSS code did not work for me (viewing the output through the Email on Acid emulator) but adding the zero-width joiner entity code did work..

Con&#8205;gratulations

Loading

@edhCoder
Copy link

@edhCoder edhCoder commented Jul 8, 2021

Just turn it off in the settings.. Mail->Composition & Replies

Loading

@rootiq
Copy link

@rootiq rootiq commented Jul 8, 2021

Just turn it off in the settings.. Mail->Composition & Replies

I'm actually coding the email HTML by hand and sending via Salesforce, so don't have that option.

Loading

@raganmt
Copy link

@raganmt raganmt commented Sep 21, 2021

@rootiq Thank you, the zero-width joiner fix worked for me.

Loading

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

Successfully merging a pull request may close this issue.

None yet
5 participants