iPhoneRoot.com       

WinterBoard - HTML в качестве background'а


Сохранить



Winterboard - потрясающая проргамма. Saurik, разработчик Winterboard, только что добавил новую функциональность - динамичский бэкграунд. Теперь бэкграунд может быть HTML страница, использующая webkit. Потенциал и возможности безграничны. Saurik выложил одноименную сос воим именем тему, которая показывает базовые файды между двумя изображениями. Потрясающе!

Комментарии от Saurik'а:

So, while staring at the desktop, I realized “wait, why don’t I make that a website? then you could do all kinds of neat things with it!”. This dream has been made a reality with the latest version of WinterBoard. There is a new file you can add called Wallpaper.html which puts a UIWebDocumentView behind SpringBoard.

This view has a transparent background and has been told not to clear what’s behind it, so you can set its background-color: CSS to transparent if you want to see through to Wallpaper.png (although you can also use standard HTML to handle the backgrounds now rather than resorting to that specific case).

The example theme, “Saurik”, uses this to do a cross-fade background between two images (as I really couldn’t decide which one I liked better ;P). Now, for those who have tried to do such effects before with MobileSafari and felt it was way too slow (as the JavaScript engine is miserable and the way it renders is equally bad) you should seriously check it out.

The way I did this (and this is just a property of my theme, you can do anything you want obviously) is to use the WebKit-specific CSS properties Apple provided us with for doing transforms and animations. These work beautifully and are super fast. For more documentation on these, you should go to Apple’s iPhone Reference Library and get the two guides they have for download.

via sleepers





Читайте нас в Твиттере:     


| |




   

Оставить комментарий

Leave a Reply



You can login with iPhoneRoot account here.