Permalink
Browse files

Importing SVG

  • Loading branch information...
1 parent fdaaadd commit 36601d878142192efa0382a95a284a1bceba0327 @jakearchibald committed Mar 7, 2012
Showing with 24 additions and 0 deletions.
  1. +5 −0 test/css/core.css
  2. +5 −0 test/css/core.scss
  3. +14 −0 test/main.js
View
5 test/css/core.css
@@ -10,3 +10,8 @@
-ms-transform: rotate(36deg);
-o-transform: rotate(36deg);
transform: rotate(36deg); }
+
+/* line 9, core.scss */
+.paper-test {
+ background: url(../../css/imgs/paper.png);
+ background-size: 100% 100%; }
View
5 test/css/core.scss
@@ -4,4 +4,9 @@
top: 271px;
left: 340px;
@include transform( rotate(36deg) );
+}
+
+.paper-test {
+ background: url(../../css/imgs/paper.png);
+ background-size: 100% 100%;
}
View
14 test/main.js
@@ -2,6 +2,20 @@
var presentation = new mankini.Presentation( document.body );
presentation.builder
+ .slide()
+ .state("SVG Test")
+ .action(function(animate, $slide) {
+ $slide.addClass('paper-test');
+ $container = $('<div/>').appendTo( $slide ).css({
+ position: 'absolute',
+ top: 0,
+ left: 0
+ });
+
+ $.ajax('/2012appcachedouche/image%20originals/appcache-diagram-optim.svg').done(function(result) {
+ $( result.documentElement ).appendTo( $container );
+ });
+ })
.slideSectionTitle('Testing', 'Hope this works properly')
.transition('fade')
.slideHeading('Iframe test')

0 comments on commit 36601d8

Please sign in to comment.