Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
bvarun1991
Posts: 20
Registered: ‎05-03-2013
My Device: Curve 9220

Animation at the start

Can anyone please tell me, is it possible to present a small animation (regarding company info) at the starting before app/game starts using HTML5....Please help me!!

Please use plain text.
New Developer
Dexo
Posts: 21
Registered: ‎08-15-2012
My Device: 8520

Re: Animation at the start

yes it does support .gif file or you can use transformations using kinect.js

Please use plain text.
Contributor
bvarun1991
Posts: 20
Registered: ‎05-03-2013
My Device: Curve 9220

Re: Animation at the start

Thanks for your kind reply, so can gif be combined with Scalar vector Graphics??

Please use plain text.
New Developer
Dexo
Posts: 21
Registered: ‎08-15-2012
My Device: 8520

Re: Animation at the start

Actually .gif is different thing and svg is different. you cannot combine both into one.  I may be wrong so if any one else has good knowldge on this may reply.

Please use plain text.
Contributor
bvarun1991
Posts: 20
Registered: ‎05-03-2013
My Device: Curve 9220

Re: Animation at the start

Ohk....Now I understand but the main issue with me is.....Check this code:

<body onload="playSound()">
<div>
<img src="words.jpg" onclick="location.href='main.html'">
<audio id="mySound" src="movie.mp3" type="audio/mpeg"/>
</div>
</body>
<script>
var k = document.getElementById("mySound");
function playSound()
{
k.play();
}
</script>

 

In the above code: when i use jpg it supports, but when I use gif....there is error, page not displayed....Please help me!!

Please use plain text.
New Developer
Dexo
Posts: 21
Registered: ‎08-15-2012
My Device: 8520

Re: Animation at the start

Please check whether the gif file u are using is in the same folder where html file is located

Please use plain text.
Contributor
bvarun1991
Posts: 20
Registered: ‎05-03-2013
My Device: Curve 9220

Re: Animation at the start

Hello

I just now checked it and yes gif is in that same folder only but still the same issue!!

Please use plain text.
New Developer
Dexo
Posts: 21
Registered: ‎08-15-2012
My Device: 8520

Re: Animation at the start

Then may be someone else may help wait n see

Please use plain text.
Trusted Contributor
lathajagan
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10

Re: Animation at the start

Let me knwo if u r app is on BB10 or <BB10 OS.
In BB10, u can use rim:splash and it supports to play gif which plays till ur app loads its content.
http://developer.blackberry.com/html5/documentation/rim_splash_element.html

or if ur app is <BB10 then u can use rim:loadingsplash.
http://developer.blackberry.com/html5/documentation/rim_loadingscreen_element_834680_11.html

P.S: if u like the solution , please mark it accept solution or like the post or gives kudos
--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
Contributor
bvarun1991
Posts: 20
Registered: ‎05-03-2013
My Device: Curve 9220

Re: Animation at the start

Thanks that was useful for me

I am developing for BB 10

Please use plain text.