Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to have an (iframed) SoundCloud widget with no background?
    primarykey
    data
    text
    <p>I'm trying to make a really minimal player -- just a play button, and another button to zoom up to a full-sized player. (<a href="http://jsfiddle.net/sprugman/zsUBK/" rel="nofollow">Fiddle</a>.) </p> <p>As far as I can tell, there's no way to get rid of the white background behind the button. (In the real case, the background is a textured image, so just changing the bg color of the iframe to some other solid color would be less ideal than being able to have a transparent (and borderless) widget.</p> <p>Fiddle code:</p> <p>HTML</p> <pre><code>&lt;div id="player-controls"&gt;&lt;a href="#zoom" onclick="$('#player-container').toggleClass('enlarged'); return false"&gt;&lt;span&gt;zoom player&lt;/span&gt;&lt;/a&gt;&lt;/div&gt; &lt;div id="player-container"&gt; &lt;iframe width="450" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F3036975"&gt;&lt;/iframe&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>body { position: relative; background: black; margin: 10px } #player-container { position: absolute; top: 1.5em; height: 36px; width: 36px; overflow: hidden; transition: width, height; transition-duration: .5s; -webkit-transition: width, height; -webkit-transition-duration: .5s; -moz-transition: width, height; -moz-transition-duration: .5s; -o-transition: width, height; -o-transition-duration: .5s; } #player-container.enlarged { width: 450px; height: 450px; } #player-container iframe { position:absolute; top: -11px; left: -177px; transition: top, left; transition-duration: .5s; -webkit-transition: top, left; -webkit-transition-duration: .5s; -moz-transition: top, left; -moz-transition-duration: .5s; -o-transition: top, left; -o-transition-duration: .5s; } #player-controls { position: absolute; top: 0; } #player-controls a { color: white; } #player-container.enlarged iframe { top: 0; left: 0; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload