Skip to content

Instantly share code, notes, and snippets.

@Rinatamu
Last active October 18, 2018 07:57
Show Gist options
  • Save Rinatamu/fa1a550a5dbeebf47560296a7c00776d to your computer and use it in GitHub Desktop.
Save Rinatamu/fa1a550a5dbeebf47560296a7c00776d to your computer and use it in GitHub Desktop.
PowerApps GameDev#3 カメラ画像の上にイメージをオーバーレイする ref: https://qiita.com/rnakamuramartiny/items/8f812b886a616329c713
appres://resources/<イメージ名>
"<div style='
position: absolute;
top: 0%;
left: "& Slider1.Value &"%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 50%;
height: auto;
'><img src='https://1.bp.blogspot.com/-sT0aNSDSNd8/W6DT3AoIEtI/AAAAAAABO_4/OH0B97M-Hu8lyzYFM6V1m-z0qCx-WV_bgCLcBGAs/s800/talk4_green_man.png'>
</div>"
.trim img {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: auto;
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment