How can we help you today?

How to Add a Web Page Animation to a SharePoint Page

Using the ShortPoint Code Web Part, you can add web page animations like the one shown below. If you're familiar with the Code Web Part, follow the quick walkthrough. For a detailed guide, use the step-by-step tutorial.


sample page with web page animation


TABLE OF CONTENTS


Prerequisite


Quick Walkthrough

1. Copy the web animation code you want to use. 

2. Go to your SharePoint page and add the ShortPoint Code Web Part.

3. Click the Edit Properties icon of the ShortPoint Code to edit it.

4. Delete all default codes.

5. Paste the copied code in the HTML field, customize it to your needs, and click Save.

6. Close the ShortPoint Code window.

7. Republish the page.


Step-by-step Tutorial

Go through the steps to learn how to add a web page animation to your SharePoint page:


Step 1: Copy the Web Page Animation Code

  • Copy the web page animation code you want to use. For this guide, we’ve created two web page animations you can use. 


Option 1: 


web page animation 1


<head><style>body {  background-color: white;  animation-name: example;  animation-duration: 4s;}@keyframes example {  from {background-color: black;}  to {background-color: white;}}</style></head>


Option 2:

web page animation 2


<body>  <style>    body {animation: fadeIn ease 5s;-webkit-animation: fadeIn ease 5s;-moz-animation: fadeIn ease 5s;-o-animation: fadeIn ease 5s;-ms-animation: fadeIn ease 5s;}@keyframes fadeIn {0% {opacity:0;}100% {opacity:1;}}@-moz-keyframes fadeIn {0% {opacity:0;}100% {opacity:1;}}@-webkit-keyframes fadeIn {0% {opacity:0;}100% {opacity:1;}}@-o-keyframes fadeIn {0% {opacity:0;}100% {opacity:1;}}@-ms-keyframes fadeIn {0% {opacity:0;}100% {opacity:1;}}    </style>      </body>

Step 2: Add the ShortPoint Code Web Part

  • Go to the SharePoint page where you want to add the YouTube Playlist and click Edit:


Edit

  • Click the close icon to leave the Toolbox:

close icon


  • Select the plus icon to add a web part:


plus icon


  • Use the search bar to look for ShortPoint Code, or scroll down until you see the Advanced section. Click ShortPoint Code:


ShortPoint Code


Step 3: Edit the ShortPoint Code Web Part

  • Click the Edit Properties icon:


Edit properties icon


Step 4: Delete Default codes

  • Select each field, delete the default codes inside, and click Save:


delete default codes


Step 5: Paste the Code

  • Click the Edit HTML field:


Edit HTML field

  • Paste the code:

paste code

  • You can directly edit the code in the ShortPoint Code Editor. Customize the code according to your needs and click Save:


Save


NOTEMake sure that Sandbox Mode is disabled. Otherwise, the web page animation will not be applied to the whole page.

Step 6: Republish Page

  • Once satisfied, click the close icon to leave the ShortPoint Code window:


close icon


  • Click Republish once you’re ready to make your changes live:

Republish


Congratulations! You've successfully added a web page animation to your SharePoint page. To explore more ways to use the ShortPoint Code web part, check out these helpful tutorials below:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 18 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more