How can we help you today?

How to Insert a Web Page Animation into SharePoint Using the ShortPoint Code Design Element

With the ShortPoint Code Design Element, adding web page animations like the one shown below just became easier. Follow the steps below to get started.


page with web animation


Quick Walkthrough

  1. Copy the web animation code you want to use. 
  2. Go to your SharePoint page and edit the ShortPoint web part.
  3. Insert the Code Design Element.
  4. Paste the copied code in the HTML field, customize it to your needs, and click the green check mark.
  5. Save and Publish.

TABLE OF CONTENTS


Prerequisite

  • You must have the latest version of ShortPoint SPFx installed in your SharePoint environment.
  • You must be a ShortPoint Designer with an active license.

Step-by-step Tutorial

Follow 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:


Option 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 1


Option 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>

Option 2


Step 2: Edit the ShortPoint Web Part

  • Go to the SharePoint page where you want to add a web page animation and click Edit:


Edit


  • Close the Toolbox:


Close


  • Select the ShortPoint tag:

ShortPoint tag


  • Click the Edit Properties icon:

Edit properties icon


Step 3: Insert the Code Design Element

  • Click the plus icon to open the library of Design Elements:

plus icon


  • Use the search bar to look for Code and select it:

Code


Step 4: Paste the Code

  • Paste the code in the HTML field and customize it according to your needs:

paste code


Step 5: Disable Sandbox Mode

  • Go to the Design tab:

Design tab


  • Disable Sandbox Mode:

disable Sandbox Mode


  • Click the green check mark:

green check mark


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

Step 6: Save

  • Click Save to apply your changes:

Save


  • Once you’re ready to make your changes live, click Publish:

Publish


That’s it! You now have a web page animation on your SharePoint page. 

final result


Related articles:

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 83 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