最近做了一个特效,css是从网上找的,地址是这个: CSS3 animate flip下的纸牌翻转效果实例页面 把其中核心的css代码扒出来如下: /* The properties in this rule are only necessary for the 'flip' transition. * We need specify the perspective to create a projection matrix. This will add * some depth as the…
local x = 20 local y = display.height/2 for i = 1,16 do--创建16张 local cardFg = display.newSprite("cardFg.png",x+(i*70),y)--背景牌 self:addChild(cardFg,0) cardFg:setVisible(false) local cardBg = display.newSprite("cardBg.png",x+(i*70),y)--前…