J'ai vu un exemple très intéressant d'utiliser html5 css3 et javascript qui est incroyable, alors pouvez-vous me dire comment est-il possible de le faire sans flash, je veux vraiment savoir comment faire des choses comme ça. Qu'est-ce qu'ils utilisent? Mais la plupart du temps je veux savoir comment ils ont fait l'effet avec tetbox et bouton. Voici The linkComment est-ce fait
-4
A
Répondre
1
Tout est le code là-dedans. Je vous suggère de tout télécharger et de jouer avec, de déterminer ce que fait quoi, et de poser une nouvelle question s'il y a un problème particulier que vous ne comprenez pas.
Le principal peu intelligent qui se passe ici (en test.js):
onMove: function(e) {
if (e.pageX >= 0 && e.pageY) {
this.rot = e.pageX*0.006-0.9;
this.tilt = (TILT_BASE - e.pageY*0.004);
if (this.tilt < 0.5) this.tilt = 0.5;
if (!this.playing)
this.doAnimation();
}
},
et ici:
updateTransform: function() {
this.box.localTrans.rotY(this.rot_cur);
this.box.localTrans._42 = (80-this.box.height)/2;
this.rootTransMatrix.rotX(this.tilt_cur);
this.rootTransMatrix._42 = (80-this.box.height)/2;
this.floorFace.postTrans.translate(-28, -88 - this.box.localTrans._42, 0);
this.box.applyTransform();
this.floorFace.applyTransform();
}
Que tout repose sur trans3d.js, qui ne les transforme CSS nécessaires.
0
Ou utilisez votre navigateur voir la fonctionnalité de source de la page ou installer firebug
Questions connexes
- 1. Comment google fait tonneau?
- 2. D3.js comment c'est fait?
- 3. Comment BitSnoop.com fait-il cela?
- 4. Paul Irlandais, comment fait-il?
- 5. Comment cela se fait-il?
- 6. Réflexion? Comment fait-on ça?
- 7. Que fait Kernel.Inject (instance); fait réellement?
- 8. Pourquoi cela fait-il ce qu'il fait?
- 9. Comment trouver quel contrôle a fait l'asyncpostback?
- 10. Comment se fait Java dans ce cas?
- 11. Comment réutiliser UIViews, comme le fait UITableView?
- 12. quoi? Android: attr/listPreferredItemHeight fait et comment?
- 13. Comment Github fait-il la localisation?
- 14. Comment un dictionnaire fait une recherche rapide
- 15. clavier android popout, comment est-il fait?
- 16. une idée de comment gnash fait?
- 17. Comment cela pourrait-il être mieux fait?
- 18. Comment fogbugz fait-il l'ajax "Add Case"?
- 19. double à hex. Comment c'est fait?
- 20. Comment Snipping Tool fait-il cela?
- 21. Comment SoundCloud a-t-il fait cela?
- 22. Comment tester l'insertion d'entité JPA est fait?
- 23. changeur de voix, comment est fait?
- 24. Comment google docs fait-il ses commentaires?
- 25. Comment cela est-il fait? Javascript?
- 26. Comment vérifier si l'utilisateur fait défiler?
- 27. rails Comment savoir quand send_file fait
- 28. Emacs, ESS, R - Comment j'ai fait ça?
- 29. Comment compiler est fait dans gcc
- 30. Comment montrer ce qu'un commit a fait?
Vous pouvez voir tout le code dans 'view: source' –