I was looking at easy way to create animations in canvas apps; as I have seen so many community members have been creating beautiful apps using animations. But I didn’t want to spend too much time animating but deliver quick value to the users by building something that not only gets the job done but also looks good.

I had seen some post which were focused on just one svg images but none of those images fit my use case. I wanted to find a process to use any svg image, tweak it to my liking and get it done. As said earlier, I did not want to spend a day creating animation. I even went down a path of learning to animate svg; though it was cool but was time-consuming.

Then I found an easy way.

First download any svg image you would want to use. I normally go to https://icons8.com or https://www.iconfinder.com search for the icon that would fit my use case and look for svg images only. Once you have found the right svg image; download it locally. Then comes the fun part – animating it. For that I stumbled upon a nice svg animator website called https://app.svgator.com. Sign up for this website and it will guide you through the tour of the website. Read this blog on more details on how to use SVGator. But I will show you a quick demo as well.

I am using the the below image for animating in this example. As I cannot upload svg image here but if you want to get the similar image you can follow this link.

Once you have the image, head over to SVGator and click on New Project. It will then ask you to upload your SVG file. Now, select the part of the image that you want to animate. Below that is a timeline control; and there you will find “Add animation” button. Clicking that will show you all the animations available for the type of part you have selected. In this case when you select path you get lot of animation properties. We will select “Rotate”.

Now a keyframe will be added to the timeline. Put your timeline indicator at 3 sec. mark; right click and duplicate the keyframe. Edit “Rotate” under Transform section on the right-hand panel as shown in the following image:

Once done you can run the animation by using the play button at the top bar next to you profile icon. This will result in the following animated image:

Using the Export button; you can export it in CSS that will download the svg file. Copy the contents of that svg file on an image property of an image component in canvas app using the following format:

"data:image/svg+xml,"&EncodeUrl("<svg id='eclasfwtqu7q1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'
    viewBox='0 0 80 80' shape-rendering='geometricPrecision' text-rendering='geometricPrecision'>
        #eclasfwtqu7q4_tr {
            animation: eclasfwtqu7q4_tr__tr 3000ms linear 1 normal forwards

        @keyframes eclasfwtqu7q4_tr__tr {
            0% {
                transform: translate(39.999999px, 39.950002px) rotate(0deg)

            100% {
                transform: translate(39.999999px, 39.950002px) rotate(360deg)
    <g id='eclasfwtqu7q2'>
        <g id='eclasfwtqu7q3'>
            <g id='eclasfwtqu7q4_tr' transform='translate(39.999999,39.950002) rotate(0)'>
                <path id='eclasfwtqu7q4'
                    transform='translate(-39.999999,-39.950002)' fill='rgb(0,0,0)' stroke='none' stroke-width='1' />
            <path id='eclasfwtqu7q5'
                fill='rgb(0,0,0)' stroke='none' stroke-width='1' />

After adding the code in canvas apps it would look like below:

Now, if you want the image to keep looping then you have to change one more property in SVGator. This is shown in the following screenshot:

Hope this helps you create some nice animations.

For more content subscribe to my blogs and follow me on:

Don’t forget to subscribe to my Power Platform ProDev Newsletter


  1. Hi Danish, this is very cool.
    Its a lot of change to the CSS when you paste into the IMage file in PowerApps, wonder is their an easier way?
    Maybe not unless something is built in PowerApps to convert to what it needs?
    Also I see the animation doesnt work when you press PLay on the app, only works once in Studio mode, then I tihnk you have to reload the page each time to get it to animate for the few seconds..
    Cool though!


  2. Hi Danish, this is very cool.
    Its a lot of change to the CSS when you paste into the IMage file in PowerApps, wonder is their an easier way?
    Maybe not unless something is built in PowerApps to convert to what it needs?
    Also I see the animation doesnt work when you press PLay on the app, only works once in Studio mode, then I tihnk you have to reload the page each time to get it to animate for the few seconds..
    Cool though!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: