<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5979800564185403334</id><updated>2024-12-18T19:33:08.912-08:00</updated><category term="Amp HTML en espanol"/><category term="Amp HTML ejemplos"/><category term="AMP Tutorial"/><category term="Tutorial AMP"/><category term="Efectos visuales"/><category term="Amp en Espanol"/><category term="User Consent"/><category term="AMP Google"/><category term="Amp HTML"/><title type='text'>Amp en Español</title><subtitle type='html'>Páginas Móviles Aceleradas (AMP). Aprenda a crear páginas AMP y ver ejemplos para todos los componentes de AMP.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://amphtmlejemplos.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default?start-index=26&amp;max-results=25'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>74</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-8773819875858866481</id><published>2018-06-30T14:23:00.000-07:00</published><updated>2019-04-17T19:58:36.303-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML en espanol"/><title type='text'>¿Cómo agregar una galería de imágenes lightbox? amp-lightbox-gallery</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUMwJuMnaRoZKaAIj7EHvElqn7qlQq0PRz1XZrGCRu9_hhZEeGf8oVktctDcLpYInzEq4gCkkhYLB9RUllhYQu4wDbto0RDLYtlZnjH2px77Qp6s-aNqa4cW1CFV3oX7KLVZcFsq-KzPdW/s1600/como-agregar-una-galeria-de-imagenes-lightbox.jpg&quot; width=&quot;626&quot; height=&quot;412&quot; alt=&quot;¿Cómo agregar una galería de imágenes lightbox? amp-lightbox-gallery&quot;/&gt;&lt;/noscript&gt;
Desde que se lanzó AMP, los desarrolladores han estado pidiendo una forma fácil de vincular &amp;lt;amp-carrusel&amp;gt; con &amp;lt;amp-image-lightbox&amp;gt; para que los usuarios puedan experimentar una visión inmersiva del contenido en los carruseles. Si bien ha sido posible combinar numerosos componentes (como&amp;nbsp; &amp;lt;amp-bind&amp;gt; ) para hacer que algo como esto funcione, no ha sido fácil.&lt;br /&gt;
&lt;br /&gt;
El componente &amp;lt;amp-lightbox-gallery&amp;gt;&amp;nbsp; proporciona una experiencia multimedia inmersiva que puede ser independiente o integrarse con el amp-carrusel. El componente se puede aplicar a una imagen independiente o a un grupo de imágenes para que cuando un usuario toque estas imágenes, ingrese una vista inmersiva donde puedan deslizar sin problemas de una imagen a otra. Cuando&amp;nbsp; &amp;lt;amp-lightbox-gallery&amp;gt; se aplica a un &amp;lt;amp-carrusel&amp;gt;, todas las imágenes del carrusel heredan el comportamiento de la galería lightbox, de modo que los deslizamientos entre los elementos de la vista inmersiva se sincronizan con los del lightbox, para crear una imagen uniforme, experiencia de galería intuitiva.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Inserte los siguientes componentes &quot;script&quot;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Importe el componente amp-lightbox-gallery en el encabezado.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-lightbox-gallery&quot; src=&quot;https://cdn.ampproject.org/v0/amp-lightbox-gallery-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
De manera opcional, importe el componente amp-carrusel en el encabezado si está usando lightbox con carrusel.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-carousel&quot; src=&quot;https://cdn.ampproject.org/v0/amp-carousel-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Uso Básico&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Este es un ejemplo básico que demuestra lightboxed &amp;lt;amp-img&amp;gt;. Usted tiene uno o más elementos &amp;lt;amp-img&amp;gt;&amp;nbsp; en la página. Simplemente agregue el atributo &quot;lightbox&quot; a cada imagen que desee ver en un lightbox.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;container&quot;&gt;
  &lt;amp-img lightbox
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9I6vzAvkPi7Zj2Md_0vdUwgmNCDK_EFKmaYOM8Z7VME3U6RL9IDlVQb7RYbwNLAyi2YmM86KaGnpY8aw7UJkZYROiy6jQUT_etitP4mn9fRn__WMhSavfmpzHAyEgwE8vwEHI4XBSaNCH/s1600/amp-1.jpg&quot;
    width=&quot;300&quot;
    height=&quot;200&quot;
    layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
  &lt;amp-img lightbox
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN9mQy6h6Cueg6QxTbHl69x3gmp3Lq-_NQaeRvoxY0aNMVP5wzP-BpfFmjLS-41tZqfW3x1K0OfKCLZi4ee7ghVooNd4CEHGJD3uIEBFtjTW-nHZckJ3brmRmz0PvmoU-dRmjO7ty0kHxg/s1600/amp-2.jpg&quot;
    width=&quot;300&quot;
    height=&quot;200&quot;
    layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
  &lt;amp-img lightbox
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjic0J8xya_AFEyXIA8NPUc6R1uCBJO6CGcTk6jgrNq0FB_90lWSupG29TVvuA7RmQ4kzGdGnbLHtaj_q7CJ40ry4VuuPy7nUB6fb2F4Cq3P3DIqtuhQ9y50bYdc7GG3tLezXjq8y3s-3AQ/s1600/amp-3.jpg&quot;
    width=&quot;300&quot;
    height=&quot;200&quot;
    layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-img lightbox
&amp;nbsp; &amp;nbsp; src=&quot;/img/road-1.jpg&quot;
&amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; height=&quot;200&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;

&amp;nbsp; &amp;lt;amp-img lightbox
&amp;nbsp; &amp;nbsp; src=&quot;/img/road-2.jpg&quot;
&amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; height=&quot;200&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
&amp;nbsp; 
&amp;lt;amp-img lightbox
&amp;nbsp; &amp;nbsp; src=&quot;/img/road-3.jpg&quot;
&amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; height=&quot;200&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Uso con carrusel&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
También puede usar &amp;lt;amp-lightbox-gallery&amp;gt; con &amp;lt;amp-carousel&amp;gt; para ver los contenidos del carrusel en un lightbox. Simplemente incluya a &amp;lt;amp-carousel&amp;gt; con &amp;lt;amp-img&amp;gt; y agregue el atributo &quot;lightbox&quot; al &amp;lt;amp-carousel&amp;gt;. Las imágenes de la caja lightbox&amp;nbsp;se sincronizarán con las diapositivas del carrusel.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit&quot;&gt;
&lt;amp-carousel lightbox
    width=&quot;400&quot;
    height=&quot;300&quot;
    layout=&quot;responsive&quot;
    type=&quot;slides&quot;&gt;
    &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9I6vzAvkPi7Zj2Md_0vdUwgmNCDK_EFKmaYOM8Z7VME3U6RL9IDlVQb7RYbwNLAyi2YmM86KaGnpY8aw7UJkZYROiy6jQUT_etitP4mn9fRn__WMhSavfmpzHAyEgwE8vwEHI4XBSaNCH/s1600/amp-1.jpg&quot;
      width=&quot;400&quot;
      height=&quot;300&quot;
      layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
    &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN9mQy6h6Cueg6QxTbHl69x3gmp3Lq-_NQaeRvoxY0aNMVP5wzP-BpfFmjLS-41tZqfW3x1K0OfKCLZi4ee7ghVooNd4CEHGJD3uIEBFtjTW-nHZckJ3brmRmz0PvmoU-dRmjO7ty0kHxg/s1600/amp-2.jpg&quot;
      width=&quot;400&quot;
      height=&quot;300&quot;
      layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
    &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjic0J8xya_AFEyXIA8NPUc6R1uCBJO6CGcTk6jgrNq0FB_90lWSupG29TVvuA7RmQ4kzGdGnbLHtaj_q7CJ40ry4VuuPy7nUB6fb2F4Cq3P3DIqtuhQ9y50bYdc7GG3tLezXjq8y3s-3AQ/s1600/amp-3.jpg&quot;
      width=&quot;400&quot;
      height=&quot;300&quot;
      layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
  &lt;/amp-carousel&gt;
&lt;/div&gt;
&amp;nbsp; &amp;lt;amp-carousel lightbox
&amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; type=&quot;slides&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-img src=&quot;/img/image1.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-img src=&quot;/img/image2.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-img src=&quot;/img/image3.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;/amp-carousel&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Grupos de Lightbox&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Por defecto, todos los elementos de lightbox se agruparán en el mismo lightbox a menos que pertenezcan a un carrusel. Todos los elementos en el mismo carrusel lightbox pertenecen a la misma caja lightbox. Puede anular este comportamiento estableciendo el atributo lightbox en una cadena única. Un patrón común es tener una imagen de héroe que se abre en una galería lightbox de varias imágenes.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

    &lt;amp-img lightbox=&quot;hero&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9I6vzAvkPi7Zj2Md_0vdUwgmNCDK_EFKmaYOM8Z7VME3U6RL9IDlVQb7RYbwNLAyi2YmM86KaGnpY8aw7UJkZYROiy6jQUT_etitP4mn9fRn__WMhSavfmpzHAyEgwE8vwEHI4XBSaNCH/s1600/amp-1.jpg&quot;
      width=&quot;400&quot;
      height=&quot;300&quot;
      layout=&quot;responsive&quot;&gt;
      &lt;span class=&quot;overlay-text&quot;&gt;See photo gallery&lt;/span&gt;
    &lt;/amp-img&gt;
    &lt;div hidden&gt;
      &lt;amp-img lightbox=&quot;hero&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN9mQy6h6Cueg6QxTbHl69x3gmp3Lq-_NQaeRvoxY0aNMVP5wzP-BpfFmjLS-41tZqfW3x1K0OfKCLZi4ee7ghVooNd4CEHGJD3uIEBFtjTW-nHZckJ3brmRmz0PvmoU-dRmjO7ty0kHxg/s1600/amp-2.jpg&quot;
        layout=&quot;responsive&quot;
        width=&quot;400&quot;
        height=&quot;710&quot;&gt;&lt;/amp-img&gt;
      &lt;amp-img lightbox=&quot;hero&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjic0J8xya_AFEyXIA8NPUc6R1uCBJO6CGcTk6jgrNq0FB_90lWSupG29TVvuA7RmQ4kzGdGnbLHtaj_q7CJ40ry4VuuPy7nUB6fb2F4Cq3P3DIqtuhQ9y50bYdc7GG3tLezXjq8y3s-3AQ/s1600/amp-3.jpg&quot;
        width=&quot;400&quot;
        height=&quot;300&quot;
        layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
    &lt;/div&gt;

&lt;/div&gt;
&amp;lt;amp-img lightbox=&quot;hero&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/img/clean-2.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;overlay-text&quot;&amp;gt;See photo gallery&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div hidden&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-img lightbox=&quot;hero&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/img/clean-1.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;710&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-img lightbox=&quot;hero&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/img/clean-3.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Subtítulos (Captions)&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Opcionalmente, puede especificar un título para cada elemento en el lightbox. Estos campos se leen y muestran automáticamente &amp;lt;amp-lightbox-gallery&amp;gt; en el siguiente orden de prioridad:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
figcaption (si el elemento lightboxed es el hijo de una figura)&lt;br /&gt;
aria-describedby Los siguientes ejemplos demuestran cómo usar subtítulos. La primera imagen no tiene un título. La segunda imagen utiliza &amp;lt;figcaption&amp;gt;. La tercera imagen utiliza&amp;nbsp; aria-describedby.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;container&quot;&gt;

  &lt;amp-img lightbox=&quot;caption&quot;
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9I6vzAvkPi7Zj2Md_0vdUwgmNCDK_EFKmaYOM8Z7VME3U6RL9IDlVQb7RYbwNLAyi2YmM86KaGnpY8aw7UJkZYROiy6jQUT_etitP4mn9fRn__WMhSavfmpzHAyEgwE8vwEHI4XBSaNCH/s1600/amp-1.jpg&quot;
    width=&quot;300&quot;
    height=&quot;200&quot;
    layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
  &lt;figure&gt;
    &lt;amp-img lightbox=&quot;caption&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN9mQy6h6Cueg6QxTbHl69x3gmp3Lq-_NQaeRvoxY0aNMVP5wzP-BpfFmjLS-41tZqfW3x1K0OfKCLZi4ee7ghVooNd4CEHGJD3uIEBFtjTW-nHZckJ3brmRmz0PvmoU-dRmjO7ty0kHxg/s1600/amp-2.jpg&quot;
      width=&quot;300&quot;
      height=&quot;200&quot;
      layout=&quot;responsive&quot;&gt;&lt;/amp-img&gt;
    &lt;figcaption class=&quot;image&quot;&gt;
      This is a long road. We don&#39;t know where it leads.
    &lt;/figcaption&gt;
  &lt;/figure&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
  &lt;amp-img lightbox=&quot;caption&quot;
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjic0J8xya_AFEyXIA8NPUc6R1uCBJO6CGcTk6jgrNq0FB_90lWSupG29TVvuA7RmQ4kzGdGnbLHtaj_q7CJ40ry4VuuPy7nUB6fb2F4Cq3P3DIqtuhQ9y50bYdc7GG3tLezXjq8y3s-3AQ/s1600/amp-3.jpg&quot;
    layout=&quot;responsive&quot;
    width=&quot;300&quot;
    height=&quot;200&quot;
    aria-describedby=&quot;desc&quot;&gt;
  &lt;/amp-img&gt;
  &lt;p class=&quot;paragraph&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;
  &lt;div hidden
    id=&quot;desc&quot;&gt;
    I&#39;m not too sure where this road leads either.
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-img lightbox=&quot;caption&quot;
&amp;nbsp; &amp;nbsp; src=&quot;/img/road-1.jpg&quot;
&amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; height=&quot;200&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
&amp;nbsp;
 &amp;lt;figure&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-img lightbox=&quot;caption&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/img/road-2.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;200&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;figcaption class=&quot;image&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; This is a long road. We don&#39;t know where it leads.
&amp;nbsp; &amp;nbsp; &amp;lt;/figcaption&amp;gt;
&amp;nbsp; &amp;lt;/figure&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;

 &amp;lt;amp-img lightbox=&quot;caption&quot;
&amp;nbsp; &amp;nbsp; src=&quot;/img/road-3.jpg&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; width=&quot;300&quot;
&amp;nbsp; &amp;nbsp; height=&quot;200&quot;
 &amp;nbsp;&amp;nbsp; aria-describedby=&quot;desc&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;lt;p class=&quot;paragraph&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
&amp;nbsp; &amp;nbsp; dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;div hidden
&amp;nbsp; &amp;nbsp; id=&quot;desc&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; I&#39;m not too sure where this road leads either.
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/8773819875858866481'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/8773819875858866481'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-agregar-una-galeria-de-imagenes-lightbox.html' title='¿Cómo agregar una galería de imágenes lightbox? amp-lightbox-gallery'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUMwJuMnaRoZKaAIj7EHvElqn7qlQq0PRz1XZrGCRu9_hhZEeGf8oVktctDcLpYInzEq4gCkkhYLB9RUllhYQu4wDbto0RDLYtlZnjH2px77Qp6s-aNqa4cW1CFV3oX7KLVZcFsq-KzPdW/s72-c/como-agregar-una-galeria-de-imagenes-lightbox.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-587860683764164296</id><published>2018-06-30T10:37:00.001-07:00</published><updated>2019-04-17T19:59:02.609-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML en espanol"/><title type='text'>¿Cómo agregar amp-date-picker a mi sitio web? Instrucciones</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAFF3Qwsjz064MVdboxYhySiOAJF0HK1zU7bU2J2NJMECIHvUa4Ez9iQnwtMACFi03qa9f_Ruv3Aype5UfVLNa8N1ubX3c7IvkDmzluUnD9rPxmHsGZc_B8APXxKp5xTQmVG4xyF6o93OI/s1600/como-agregar-amp-date-picker-a-mi-sitio-web.png&quot; width=&quot;682&quot; height=&quot;398&quot; alt=&quot;¿Cómo agregar amp-date-picker a mi sitio web? Instrucciones&quot;/&gt;&lt;/noscript&gt;
amp-date-picker, es un selector de fecha interactivo al estilo calendario para la entrada de formularios. Con este componente, los usuarios pueden especificar fechas únicas o rangos de fechas con una interfaz de calendario que hace que el proceso sea más rápido y menos propenso a errores.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Inserte los siguientes script&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Agregue el componente amp-date-picker&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-date-picker&quot; src=&quot;https://cdn.ampproject.org/v0/amp-date-picker-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Inserte el componente amp-bind para establecer las variables en función de la fecha seleccionada.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-bind&quot; src=&quot;https://cdn.ampproject.org/v0/amp-bind-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Incluya el componente amp-mustache para mostrar un panel de información debajo del selector de fecha.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-template=&quot;amp-mustache&quot; src=&quot;https://cdn.ampproject.org/v0/amp-mustache-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Agregar el componente amp-lightbox para mostrar un selector de fecha dentro de una vista de caja de luz a pantalla completa.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-lightbox&quot; src=&quot;https://cdn.ampproject.org/v0/amp-lightbox-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Insertar el componente amp-form para crear formularios.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-form&quot; src=&quot;https://cdn.ampproject.org/v0/amp-form-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Para personalizar el amp-date-pickerestilo, puede usar clases tales como las CalendarMonth_caption que se heredan de las fechas de reacción. amp-date-picker también expone las clases de CSS que puede usar en la regla de CSS, como amp-date-picker-selecting, que se aplica a la entrada de fecha que el usuario está editando.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Estilos CSS&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;style amp-custom&amp;gt;
.CalendarMonth_caption {
&amp;nbsp; color: #fff;
}
[type=&quot;range&quot;] .amp-date-picker-selecting {
&amp;nbsp; border-bottom-color: #b60845;
&amp;nbsp; color: #b60845;
}
.align-content-center,
.align-content-center .amp-date-picker-calendar-container {
&amp;nbsp; display: flex;
&amp;nbsp; align-items: center;
&amp;nbsp; justify-content: center;
&amp;nbsp; flex-direction: row;
}
.space-between &amp;gt; * + * {
&amp;nbsp; margin-left: 1em;
}
amp-lightbox {
&amp;nbsp; background: rgba(0, 0, 0, .75);
}
amp-lightbox .align-content-center {
&amp;nbsp; height: 100%;
}
.example-picker {
  display: flex;
}
.example-picker[mode=&quot;overlay&quot;] {
&amp;nbsp; padding: 1em;
}
.small-button {
&amp;nbsp; font-size: .75em;
&amp;nbsp; line-height: .75em;
&amp;nbsp; margin: .75em;
}
.icon-input {
&amp;nbsp; background-image: url(&#39;data:image/svg+xml,&amp;lt;svg version=&quot;1.1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 1393.1 1500&quot; style=&quot;enable-background:new 0 0 1393.1 1500;&quot; xml:space=&quot;preserve&quot;&amp;gt;&amp;lt;path d=&quot;M107.2,1392.9h241.1v-241.1H107.2V1392.9z M401.9,1392.9h267.9v-241.1H401.9V1392.9z M107.2,1098.2h241.1V830.4H107.2 V1098.2z M401.9,1098.2h267.9V830.4H401.9V1098.2z M107.2,776.8h241.1V535.7H107.2V776.8z M723.4,1392.9h267.9v-241.1H723.4V1392.9z M401.9,776.8h267.9V535.7H401.9V776.8z M1044.8,1392.9H1286v-241.1h-241.1V1392.9z M723.4,1098.2h267.9V830.4H723.4V1098.2z M428.7,375V133.9c0-7.3-2.7-13.5-8-18.8c-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3,0-13.5,2.7-18.8,8c-5.3,5.3-8,11.6-8,18.8V375 c0,7.3,2.7,13.5,8,18.8c5.3,5.3,11.6,8,18.8,8h53.6c7.3,0,13.5-2.7,18.8-8C426,388.5,428.7,382.3,428.7,375z M1044.8,1098.2H1286 V830.4h-241.1V1098.2z M723.4,776.8h267.9V535.7H723.4V776.8z M1044.8,776.8H1286V535.7h-241.1V776.8z M1071.6,375V133.9 c0-7.3-2.7-13.5-8-18.8c-5.3-5.3-11.6-8-18.8-8h-53.6c-7.3,0-13.5,2.7-18.8,8c-5.3,5.3-8,11.6-8,18.8V375c0,7.3,2.7,13.5,8,18.8 c5.3,5.3,11.6,8,18.8,8h53.6c7.3,0,13.5-2.7,18.8-8C1069,388.5,1071.6,382.3,1071.6,375z M1393.1,321.4v1071.4 c0,29-10.6,54.1-31.8,75.3c-21.2,21.2-46.3,31.8-75.3,31.8H107.2c-29,0-54.1-10.6-75.3-31.8C10.6,1447,0,1421.9,0,1392.9V321.4 c0-29,10.6-54.1,31.8-75.3s46.3-31.8,75.3-31.8h107.2v-80.4c0-36.8,13.1-68.4,39.3-94.6S311.4,0,348.3,0h53.6 c36.8,0,68.4,13.1,94.6,39.3c26.2,26.2,39.3,57.8,39.3,94.6v80.4h321.5v-80.4c0-36.8,13.1-68.4,39.3-94.6 C922.9,13.1,954.4,0,991.3,0h53.6c36.8,0,68.4,13.1,94.6,39.3s39.3,57.8,39.3,94.6v80.4H1286c29,0,54.1,10.6,75.3,31.8 C1382.5,267.3,1393.1,292.4,1393.1,321.4z&quot;/&amp;gt;&amp;lt;/svg&amp;gt;&#39;);
&amp;nbsp; background-repeat: no-repeat;
&amp;nbsp; flex-shrink: 0;
&amp;nbsp; height: 28px;
&amp;nbsp; margin-top: 8px;
&amp;nbsp; width: 27px;
}
&amp;lt;/style&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Selector de fecha único&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;amp-date-picker&lt;/i&gt;&lt;/b&gt; con type=single se puede usar para seleccionar una sola fecha. Puede usar amp-mustache con el atributo info-template para mostrar un panel de información debajo del calendario, aquí mostramos la fecha que acaba de seleccionar. info-template también habilita el enlace AMP haciendo disponibles las variables que se han establecido con AMP.setState. Se requiere un marcador de posición para el componente. Para una sola fecha, esto puede tomar la forma: &amp;lt;input amp-date-placeholder placeholder=&quot;Pick a date&quot;&amp;gt;. amp-date-picker introduce clear acción que se puede llamar después de hacer clic en un botón para borrar la selección de fecha; requiere el atributo show-clear-date.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;amp-date-picker id=&quot;simple-date-picker&quot;
  type=&quot;single&quot;
  mode=&quot;overlay&quot;
  layout=&quot;container&quot;
  on=&quot;select:AMP.setState({date1: event.date, dateType1: event.id})&quot;
  format=&quot;YYYY-MM-DD&quot;
  open-after-select
  input-selector=&quot;[name=date1]&quot;
  class=&quot;example-picker space-between&quot;&gt;
  &lt;div class=&quot;icon-input&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;ampstart-input&quot;&gt;
    &lt;input class=&quot;border-none p0&quot;
      name=&quot;date1&quot;
      placeholder=&quot;Pick a date&quot;&gt;
  &lt;/div&gt;
  &lt;button class=&quot;ampstart-btn caps&quot;
    on=&quot;tap: simple-date-picker.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;template type=&quot;amp-mustache&quot;
    info-template&gt;
    &lt;span [text]=&quot;date1 != null ? &#39;You picked &#39; + date1 + &#39;.&#39; : &#39;You will see your chosen date here.&#39;&quot;&gt;You will see your chosen date here.&lt;/span&gt;
  &lt;/template&gt;
&lt;/amp-date-picker&gt;

&lt;/div&gt;

&amp;lt;amp-date-picker id=&quot;simple-date-picker&quot;
&amp;nbsp; type=&quot;single&quot;
&amp;nbsp; mode=&quot;overlay&quot;
&amp;nbsp; layout=&quot;container&quot;
&amp;nbsp; on=&quot;select:AMP.setState({date1: event.date, dateType1: event.id})&quot;
&amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; open-after-select
&amp;nbsp; input-selector=&quot;[name=date1]&quot;
&amp;nbsp; class=&quot;example-picker space-between&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;icon-input&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name=&quot;date1&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Pick a date&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap: simple-date-picker.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;
&amp;nbsp; &amp;nbsp; info-template&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span [text]=&quot;date1 != null ? &#39;You picked &#39; + date1 + &#39;.&#39; : &#39;You will see your chosen date here.&#39;&quot;&amp;gt;You will see your chosen date here.&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;lt;/amp-date-picker&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Además, también puede usar amp-mustache para crear plantillas para el marcado de fecha personalizado, como un icono en lugar del número del mes. Aquí estamos usando un ícono de taco en lugar del número del mes con una frecuencia de 2 semanas cada martes. Los casos de uso común pueden ser fechas del mes en que el precio de un artículo se fija en un número específico.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;amp-date-picker id=&quot;simple-date-picker-2&quot;
  type=&quot;single&quot;
  mode=&quot;overlay&quot;
  layout=&quot;container&quot;
  on=&quot;select:AMP.setState({date2: event.date, dateType2: event.id})&quot;
  locale=&quot;en&quot;
  format=&quot;YYYY-MM-DD&quot;
  open-after-select
  input-selector=&quot;[name=date2]&quot;
  class=&quot;example-picker space-between&quot;&gt;
  &lt;div class=&quot;ampstart-input&quot;&gt;
    &lt;input class=&quot;border-none p0&quot;
      name=&quot;date2&quot;
      placeholder=&quot;Pick a date&quot;&gt;
  &lt;/div&gt;
  &lt;button class=&quot;ampstart-btn caps&quot;
    on=&quot;tap: simple-date-picker-2.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;template type=&quot;amp-mustache&quot;
    date-template
    dates=&quot;FREQ=WEEKLY;DTSTART=20180101T000000Z;INTERVAL=2;WKST=SU;BYDAY=TU&quot;
    id=&quot;tacos2&quot;&gt;
    &lt;span&gt;🌮&lt;/span&gt;
    &lt;span class=&quot;taco-tuesday&quot;&gt;&lt;/span&gt;
  &lt;/template&gt;
  &lt;template type=&quot;amp-mustache&quot;
    info-template&gt;
    &lt;span [text]=&quot;date2 ? &#39;You picked &#39; + date2 + &#39;.&#39; +
      (dateType2 == &#39;tacos2&#39; ? &#39; Happy Taco Tuesday!&#39; : &#39;&#39;) : &#39;&#39;&quot;&gt;You will see your chosen date here.&lt;/span&gt;
  &lt;/template&gt;
&lt;/amp-date-picker&gt;

&lt;/div&gt;

&amp;lt;amp-date-picker id=&quot;simple-date-picker-2&quot;
&amp;nbsp; type=&quot;single&quot;
&amp;nbsp; mode=&quot;overlay&quot;
&amp;nbsp; layout=&quot;container&quot;
&amp;nbsp; on=&quot;select:AMP.setState({date2: event.date, dateType2: event.id})&quot;
&amp;nbsp; locale=&quot;en&quot;
&amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; open-after-select
&amp;nbsp; input-selector=&quot;[name=date2]&quot;
&amp;nbsp; class=&quot;example-picker space-between&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; name=&quot;date2&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Pick a date&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap: simple-date-picker-2.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;
&amp;nbsp; &amp;nbsp; date-template
&amp;nbsp; &amp;nbsp; dates=&quot;FREQ=WEEKLY;DTSTART=20180101T000000Z;INTERVAL=2;WKST=SU;BYDAY=TU&quot;
&amp;nbsp; &amp;nbsp; id=&quot;tacos2&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span&amp;gt;🌮&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;taco-tuesday&quot;&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;
&amp;nbsp; &amp;nbsp; info-template&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span [text]=&quot;date2 ? &#39;You picked &#39; + date2 + &#39;.&#39; +
&amp;nbsp; &amp;nbsp; &amp;nbsp; (dateType2 == &#39;tacos2&#39; ? &#39; Happy Taco Tuesday!&#39; : &#39;&#39;) : &#39;&#39;&quot;&amp;gt;You will see your chosen date here.&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;lt;/amp-date-picker&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Selector de rango de fechas&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-date-picker con type=rangese puede usar para seleccionar un rango de fechas. Por defecto, amp-date-picker deshabilita las fechas pasadas, use el atributo min para habilitarlas.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;amp-date-picker type=&quot;range&quot;
  mode=&quot;overlay&quot;
  id=&quot;range-date-picker&quot;
  on=&quot;
  select:
    AMP.setState({
        dates: event.dates,
        startDate: event.start,
        endDate: event.end
    })&quot;
  format=&quot;YYYY-MM-DD&quot;
  open-after-select
  min=&quot;2017-10-26&quot;
  start-input-selector=&quot;#range-start&quot;
  end-input-selector=&quot;#range-end&quot;
  class=&quot;example-picker space-between&quot;&gt;
  &lt;div class=&quot;ampstart-input&quot;&gt;
    &lt;input class=&quot;border-none p0&quot;
      id=&quot;range-start&quot;
      placeholder=&quot;Start date&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;ampstart-input&quot;&gt;
    &lt;input class=&quot;border-none p0&quot;
      id=&quot;range-end&quot;
      placeholder=&quot;End date&quot;&gt;
  &lt;/div&gt;
  &lt;button class=&quot;ampstart-btn caps&quot;
    on=&quot;tap:range-date-picker.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;template type=&quot;amp-mustache&quot;
    info-template&gt;
    &lt;span [text]=&quot;(startDate &amp;&amp; endDate ?
      &#39;You picked &#39; + startDate.date + &#39; as start date and &#39; + endDate.date + &#39; as end date.&#39; :
      &#39;You will see your chosen dates here.&#39;)&quot;&gt;
      You will see your chosen dates here.
    &lt;/span&gt;
  &lt;/template&gt;
&lt;/amp-date-picker&gt;

&lt;/div&gt;

&amp;lt;amp-date-picker type=&quot;range&quot;
&amp;nbsp; mode=&quot;overlay&quot;
&amp;nbsp; id=&quot;range-date-picker&quot;
&amp;nbsp; on=&quot;
&amp;nbsp; select:
&amp;nbsp; &amp;nbsp; AMP.setState({
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dates: event.dates,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; startDate: event.start,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; endDate: event.end
&amp;nbsp; &amp;nbsp; })&quot;
&amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; open-after-select
&amp;nbsp; min=&quot;2017-10-26&quot;
&amp;nbsp; start-input-selector=&quot;#range-start&quot;
&amp;nbsp; end-input-selector=&quot;#range-end&quot;
&amp;nbsp; class=&quot;example-picker space-between&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;range-start&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Start date&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;range-end&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;End date&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap:range-date-picker.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;
&amp;nbsp; &amp;nbsp; info-template&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span [text]=&quot;(startDate &amp;amp;&amp;amp; endDate ?
&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;You picked &#39; + startDate.date + &#39; as start date and &#39; + endDate.date + &#39; as end date.&#39; :
&amp;nbsp;   &amp;nbsp; &#39;You will see your chosen dates here.&#39;)&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; You will see your chosen dates here.
&amp;nbsp; &amp;nbsp; &amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;lt;/amp-date-picker&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Configuración Externa&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Es posible configurar las preferencias amp-date-picker utilizando un json externo. Usamos el siguiente JSON en la URL /json/amp-date-picker.json:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;&amp;nbsp;{
&amp;nbsp; &amp;nbsp; &quot;templates&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;id&quot;: &quot;spooky&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;dates&quot;: [
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;FREQ=WEEKLY;DTSTART=20180101T160000Z;BYDAY=MO&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;FREQ=YEARLY;DTSTART=20180101T160000Z;WKST=SU;BYMONTH=10;BYMONTHDAY=31&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;FREQ=MONTHLY;DTSTART=20180101T160000Z;WKST=SU;BYDAY=FR;BYMONTHDAY=13&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ]
&amp;nbsp; &amp;nbsp; }]
&amp;nbsp; }

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Para las fechas que coinciden con la lista de fechas en el blob JSON, la plantilla con id=&quot;spooky&quot; se utilizará para representar ese día en el calendario. En este caso, estas fechas son los lunes, viernes 13 y Halloween.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;amp-date-picker id=&quot;src-picker&quot;
  type=&quot;single&quot;
  mode=&quot;overlay&quot;
  layout=&quot;container&quot;
  format=&quot;YYYY-MM-DD&quot;
  src=&quot;https://ampbyexample.com/json/amp-date-picker.json&quot;
  input-selector=&quot;#src-input&quot;
  class=&quot;example-picker space-between&quot;&gt;
  &lt;div class=&quot;ampstart-input&quot;&gt;
    &lt;input class=&quot;border-none p0&quot;
      id=&quot;src-input&quot;
      placeholder=&quot;Pick a date&quot;&gt;
  &lt;/div&gt;
  &lt;button class=&quot;ampstart-btn caps&quot;
    on=&quot;tap: src-picker.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;template type=&quot;amp-mustache&quot;
    date-template
    id=&quot;spooky&quot;&gt;
    &lt;span&gt;🙀&lt;/span&gt;
  &lt;/template&gt;
&lt;/amp-date-picker&gt;

&lt;/div&gt;

&amp;lt;amp-date-picker id=&quot;src-picker&quot;
&amp;nbsp; type=&quot;single&quot;
&amp;nbsp; mode=&quot;overlay&quot;
&amp;nbsp; layout=&quot;container&quot;
&amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; src=&quot;https://ampbyexample.com/json/amp-date-picker.json&quot;
&amp;nbsp; input-selector=&quot;#src-input&quot;
&amp;nbsp; class=&quot;example-picker space-between&quot;&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;src-input&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Pick a date&quot;&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap: src-picker.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
 &amp;lt;template type=&quot;amp-mustache&quot;
 &amp;nbsp; date-template
&amp;nbsp; &amp;nbsp; id=&quot;spooky&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;span&amp;gt;🙀&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;lt;/amp-date-picker&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Selector de fecha estático &quot;Static date picker&quot;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-date-picker con mode=&quot;static&quot; puede mostrar una vista de calendario. El selector estático se puede usar con o sin una entrada adjunta.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;align-content-center&quot;&gt;
  &lt;amp-date-picker id=&quot;static-picker&quot;
    type=&quot;single&quot;
    mode=&quot;static&quot;
    layout=&quot;fixed-height&quot;
    height=&quot;360&quot;
    format=&quot;YYYY-MM-DD&quot;
    input-selector=&quot;#static-picker-input&quot;&gt;
  &lt;/amp-date-picker&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;align-content-center&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-date-picker id=&quot;static-picker&quot;
&amp;nbsp; &amp;nbsp; type=&quot;single&quot;
&amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; height=&quot;360&quot;
&amp;nbsp; &amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; &amp;nbsp; input-selector=&quot;#static-picker-input&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-date-picker&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
amp-date-picker admite una variedad de atributos, por ejemplo highlighted y blocked. Encuentra la lista completa en el documento oficial. El atributo blocked permite especificar una lista separada por espacios de fechas ISO 8601 y RRULE RFC 5545 que especifican fechas no permitidas. Los atributos highlighted son una lista separada por espacios de fechas de ISO 8601 y RRULE de RFC 5545 que especifican las fechas que se muestran con un estilo de resaltado. Aquí cada jueves es highlighted, mientras que cada fin de semana lo es blocked.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;align-content-center&quot;&gt;
  &lt;amp-date-picker id=&quot;simple-date-picker-3&quot;
    type=&quot;single&quot;
    mode=&quot;static&quot;
    layout=&quot;fixed-height&quot;
    height=&quot;360&quot;
    on=&quot;select:AMP.setState({date3: event.date ? event.date : &#39;&#39;})&quot;
    locale=&quot;en&quot;
    format=&quot;YYYY-MM-DD&quot;
    highlighted=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=TH&quot;
    blocked=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=SA,SU&quot;&gt;
  &lt;/amp-date-picker&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;align-content-center&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-date-picker id=&quot;simple-date-picker-3&quot;
&amp;nbsp; &amp;nbsp; type=&quot;single&quot;
&amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; height=&quot;360&quot;
&amp;nbsp; &amp;nbsp; on=&quot;select:AMP.setState({date3: event.date ? event.date : &#39;&#39;})&quot;
&amp;nbsp; &amp;nbsp; locale=&quot;en&quot;
&amp;nbsp; &amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; &amp;nbsp; highlighted=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=TH&quot;
&amp;nbsp; &amp;nbsp; blocked=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=SA,SU&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-date-picker&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Si el selector de fecha utiliza type=&quot;range&quot; y hay fechas bloqueadas que pueden formar parte del rango, el atributo allow-blocked-dates&amp;nbsp; permite a los usuarios seleccionar rangos que incluyen fechas bloqueadas.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;align-content-center&quot;&gt;
  &lt;amp-date-picker id=&quot;simple-date-picker-4&quot;
    type=&quot;range&quot;
    mode=&quot;static&quot;
    layout=&quot;fixed-height&quot;
    height=&quot;360&quot;
    on=&quot;select:AMP.setState({date4: event.date ? event.date : &#39;&#39;})&quot;
    locale=&quot;en&quot;
    format=&quot;YYYY-MM-DD&quot;
    allow-blocked-ranges
    highlighted=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=TH&quot;
    blocked=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=SA,SU&quot;&gt;
  &lt;/amp-date-picker&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;align-content-center&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-date-picker id=&quot;simple-date-picker-4&quot;
&amp;nbsp; &amp;nbsp; type=&quot;range&quot;
&amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; height=&quot;360&quot;
&amp;nbsp; &amp;nbsp; on=&quot;select:AMP.setState({date4: event.date ? event.date : &#39;&#39;})&quot;
&amp;nbsp; &amp;nbsp; locale=&quot;en&quot;
&amp;nbsp; &amp;nbsp; format=&quot;YYYY-MM-DD&quot;
&amp;nbsp; &amp;nbsp; allow-blocked-ranges
&amp;nbsp; &amp;nbsp; highlighted=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=TH&quot;
&amp;nbsp; &amp;nbsp; blocked=&quot;FREQ=WEEKLY;WKST=SU;BYDAY=SA,SU&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-date-picker&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Lightbox date picker&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-date-picker puede mostrar dentro de un lightbox modal. El evento activate abre el lightbox si el usuario enfoca los elementos de entrada conectados del selector y presiona la tecla de flecha hacia abajo. deactivatese activa cuando el usuario presiona escapar cuando interactúa con la vista del calendario. Para un cuadro de interfaz de solo toque, el atributo on=&quot;tap:...&quot;&amp;nbsp; abre el selector cuando el usuario toca la entrada.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;p1&quot;&gt;
  &lt;p&gt;Choose your travel dates&lt;/p&gt;
  &lt;div class=&quot;align-content-center space-between&quot;&gt;
    &lt;div class=&quot;ampstart-input&quot;&gt;
      &lt;input class=&quot;border-none p0&quot;
        id=&quot;lb-start&quot;
        placeholder=&quot;Start date&quot;
        on=&quot;tap:lb.open&quot;
        role=&quot;textbox&quot;
        tabindex=&quot;0&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;ampstart-input&quot;&gt;
      &lt;input class=&quot;border-none p0&quot;
        id=&quot;lb-end&quot;
        placeholder=&quot;End date&quot;
        on=&quot;tap:lb.open&quot;
        role=&quot;textbox&quot;
        tabindex=&quot;0&quot;&gt;
    &lt;/div&gt;
    &lt;button class=&quot;ampstart-btn caps&quot;
      on=&quot;tap:lb-picker.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;/div&gt;
  &lt;amp-lightbox id=&quot;lb&quot;
    layout=&quot;nodisplay&quot;&gt;
    &lt;button class=&quot;ampstart-btn absolute m1 caps small-button&quot;
      on=&quot;tap:lb.close&quot;
      tabindex=&quot;0&quot;&gt;Close&lt;/button&gt;
    &lt;div class=&quot;align-content-center&quot;&gt;
      &lt;amp-date-picker id=&quot;lb-picker&quot;
        type=&quot;range&quot;
        mode=&quot;static&quot;
        layout=&quot;fixed-height&quot;
        height=&quot;360&quot;
        format=&quot;MM/DD/YYYY&quot;
        on=&quot;activate: lb.open;
            deactivate: lb.close;&quot;
        start-input-selector=&quot;#lb-start&quot;
        end-input-selector=&quot;#lb-end&quot;&gt;&lt;/amp-date-picker&gt;
    &lt;/div&gt;
  &lt;/amp-lightbox&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;p1&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;Choose your travel dates&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;align-content-center space-between&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;lb-start&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Start date&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb.open&quot;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;textbox&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;lb-end&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;End date&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb.open&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;textbox&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb-picker.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;amp-lightbox id=&quot;lb&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn absolute m1 caps small-button&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb.close&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;Close&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;align-content-center&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-date-picker id=&quot;lb-picker&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type=&quot;range&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;360&quot;
&amp;nbsp;  &amp;nbsp; &amp;nbsp; format=&quot;MM/DD/YYYY&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;activate: lb.open;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deactivate: lb.close;&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; start-input-selector=&quot;#lb-start&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end-input-selector=&quot;#lb-end&quot;&amp;gt;&amp;lt;/amp-date-picker&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/amp-lightbox&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Selector lightbox date picker&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-date-picker también puede mostrarse como una vista de pantalla completa dentro de una caja de luz. El atributo fullscreen le dice al selector de fecha que tome el espacio en su contenedor y permita que su contenido se desplace verticalmente.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;p1&quot;&gt;
  &lt;p&gt;Choose your travel dates&lt;/p&gt;
  &lt;div class=&quot;align-content-center space-between&quot;&gt;
    &lt;div class=&quot;ampstart-input&quot;&gt;
      &lt;input class=&quot;border-none p0&quot;
        id=&quot;lb-fullscreen-start&quot;
        placeholder=&quot;Start date&quot;
        on=&quot;tap:lb-fullscreen.open&quot;
        role=&quot;textbox&quot;
        tabindex=&quot;0&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;ampstart-input&quot;&gt;
      &lt;input class=&quot;border-none p0&quot;
        id=&quot;lb-fullscreen-end&quot;
        placeholder=&quot;End date&quot;
        on=&quot;tap:lb-fullscreen.open&quot;
        role=&quot;textbox&quot;
        tabindex=&quot;0&quot;&gt;
    &lt;/div&gt;
    &lt;button class=&quot;ampstart-btn caps&quot;
      on=&quot;tap:lb-fullscreen-picker.clear&quot;&gt;Clear&lt;/button&gt;
  &lt;/div&gt;
  &lt;amp-lightbox id=&quot;lb-fullscreen&quot;
    layout=&quot;nodisplay&quot;
    scrollable&gt;
    &lt;button class=&quot;ampstart-btn m1 absolute caps z3 small-button&quot;
      on=&quot;tap:lb-fullscreen.close&quot;
      tabindex=&quot;0&quot;&gt;Close&lt;/button&gt;
    &lt;amp-date-picker id=&quot;lb-fullscreen-picker&quot;
      fullscreen
      layout=&quot;fill&quot;
      mode=&quot;static&quot;
      type=&quot;range&quot;
      number-of-months=&quot;12&quot;
      format=&quot;MM/DD/YYYY&quot;
      on=&quot;activate: lb-fullscreen.open;
            deactivate: lb-fullscreen.close;&quot;
      start-input-selector=&quot;#lb-fullscreen-start&quot;
      end-input-selector=&quot;#lb-fullscreen-end&quot;&gt;&lt;/amp-date-picker&gt;
  &lt;/amp-lightbox&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;p1&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;Choose your travel dates&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;align-content-center space-between&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;lb-fullscreen-start&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Start date&quot;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb-fullscreen.open&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;textbox&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
 &amp;nbsp; &amp;lt;div class=&quot;ampstart-input&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input class=&quot;border-none p0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id=&quot;lb-fullscreen-end&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;End date&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb-fullscreen.open&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;textbox&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:lb-fullscreen-picker.clear&quot;&amp;gt;Clear&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;amp-lightbox id=&quot;lb-fullscreen&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;
&amp;nbsp; &amp;nbsp; scrollable&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn m1 absolute caps z3 small-button&quot;
&amp;nbsp;&amp;nbsp; &amp;nbsp; on=&quot;tap:lb-fullscreen.close&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;&amp;gt;Close&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-date-picker id=&quot;lb-fullscreen-picker&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; fullscreen
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;fill&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; type=&quot;range&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; number-of-months=&quot;12&quot;
 &amp;nbsp; &amp;nbsp; format=&quot;MM/DD/YYYY&quot;
 &amp;nbsp; &amp;nbsp; on=&quot;activate: lb-fullscreen.open;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deactivate: lb-fullscreen.close;&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; start-input-selector=&quot;#lb-fullscreen-start&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; end-input-selector=&quot;#lb-fullscreen-end&quot;&amp;gt;&amp;lt;/amp-date-picker&amp;gt;
&amp;nbsp; &amp;lt;/amp-lightbox&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Selector de fecha en un formulario &quot;Date picker in a form&quot;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-date-picker se integra con los formularios de AMP. Si no proporciona una entrada para un selector estático, creará una entrada oculta para enviar en el formulario.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;form method=&quot;post&quot;
  class=&quot;p1&quot;
  action-xhr=&quot;/components/amp-form/submit-form-xhr&quot;
  target=&quot;_top&quot;&gt;
  &lt;amp-date-picker id=&quot;form-picker&quot;
    type=&quot;single&quot;
    mode=&quot;static&quot;
    layout=&quot;fixed-height&quot;
    height=&quot;360&quot;
    format=&quot;YYYY-MM-DD&quot;&gt;
  &lt;/amp-date-picker&gt;
  &lt;input type=&quot;submit&quot;
    class=&quot;ampstart-btn caps&quot;&gt;
  &lt;div submit-success&gt;
    &lt;template type=&quot;amp-mustache&quot;&gt;
      Success! Thanks for trying the
      &lt;code&gt;amp-form&lt;/code&gt; demo!
    &lt;/template&gt;
  &lt;/div&gt;
  &lt;div submit-error&gt;
    &lt;template type=&quot;amp-mustache&quot;&gt;
      Error!
    &lt;/template&gt;
  &lt;/div&gt;
&lt;/form&gt;

&lt;/div&gt;

&amp;lt;form method=&quot;post&quot;
&amp;nbsp; class=&quot;p1&quot;
&amp;nbsp; action-xhr=&quot;/components/amp-form/submit-form-xhr&quot;
&amp;nbsp; target=&quot;_top&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-date-picker id=&quot;form-picker&quot;
&amp;nbsp; &amp;nbsp; type=&quot;single&quot;
&amp;nbsp; &amp;nbsp; mode=&quot;static&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; height=&quot;360&quot;
&amp;nbsp; &amp;nbsp; format=&quot;YYYY-MM-DD&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-date-picker&amp;gt;
&amp;nbsp; &amp;lt;input type=&quot;submit&quot;
&amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn caps&quot;&amp;gt;
&amp;nbsp; &amp;lt;div submit-success&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Success! Thanks for trying the
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;amp-form&amp;lt;/code&amp;gt; demo!
&amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div submit-error&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Error!
&amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/587860683764164296'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/587860683764164296'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-agregar-amp-date-picker-a-mi-sitio-web.html' title='¿Cómo agregar amp-date-picker a mi sitio web? Instrucciones'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAFF3Qwsjz064MVdboxYhySiOAJF0HK1zU7bU2J2NJMECIHvUa4Ez9iQnwtMACFi03qa9f_Ruv3Aype5UfVLNa8N1ubX3c7IvkDmzluUnD9rPxmHsGZc_B8APXxKp5xTQmVG4xyF6o93OI/s72-c/como-agregar-amp-date-picker-a-mi-sitio-web.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-667918001033107257</id><published>2018-06-21T17:37:00.001-07:00</published><updated>2019-04-17T19:59:19.127-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Google"/><title type='text'>¿Qué hay en una URL de AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3DeIsheQJCBVGiwsxVGQii_CFSMhiRSGnAYxk4wZOdkS2R-eDx5ryrnLUiNrrYo7Kl8Qs-cBcu9iDwxRmsgNLzSkS1U6AG0YMijkSORxZiC9LQPodS9KDoFkkRSNbacmEsdTV7DDMLfF-/s1600/que-hay-en-una-url-de-amp.jpg&quot; width=&quot;712&quot; height=&quot;430&quot; alt=&quot;¿Qué hay en una URL de AMP?&quot;/&gt;&lt;/noscript&gt;
En la web, mucho: las URL y los orígenes representan, hasta cierto punto, la confianza y la propiedad del contenido. Cuando estás leyendo un artículo del New York Times, un rápido vistazo a la URL te da un nivel de confianza de que lo que estás leyendo representa la voz del New York Times. La atribución, la marca y la propiedad son claras.&lt;br /&gt;
&lt;br /&gt;
AMP en la Búsqueda de Google ha borrado un poco esta línea. En esta publicación, primero intentaré explicar el razonamiento detrás de algunas de las decisiones técnicas que se han tomado y dar sentido a los diferentes tipos de URL de AMP que existen. A continuación, describiré los cambios que se han estado realizando para abordar las preocupaciones sobre las URL.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Para empezar, los documentos AMP tienen tres tipos diferentes de URL:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;i&gt;URL original:&lt;/i&gt;&lt;/b&gt; el documento del editor escrito en formato AMP. http://www.example.com/amp/doc.html&lt;br /&gt;
&lt;b&gt;&lt;i&gt;URL de caché de AMP:&lt;/i&gt;&lt;/b&gt; el documento servido a través de un caché de AMP (por ejemplo, todos los AMP servidos por Google se sirven a través de Google AMP Cache ). La mayoría de los usuarios nunca verán esta URL. https://www-example-com.cdn.ampproject.org/c/www.example.com/amp/doc.html&lt;br /&gt;
&lt;b&gt;&lt;i&gt;URL de Google AMP Viewer&lt;/i&gt;&lt;/b&gt;: el documento que se muestra en un visor de AMP (por ejemplo, cuando se representa en la página de resultados de búsqueda). https://www.google.com/amp/www.example.com/amp.doc.html&lt;/blockquote&gt;
&lt;div class=&quot;amp-img-500&quot;&gt;
&lt;amp-img alt=&quot;¿Qué hay en una URL de AMP?&quot; height=&quot;278&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi52C9cCMOiFR78jPod3eAvIYeP_SZ-YGzE4-pnExU1kzKj1R5Ov95IFZloimPcWSEhtV8dFwwhtn8PEEYQO3O5r-sdZxl1VYSrahyphenhyphenM1GEmdO4hXQA9rjWiXsavH6EWSLstbdz814L7sb7M/s400/que-hay-en-una-url-de-amp.jpg&quot; width=&quot;400&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;
&lt;br /&gt;
Aunque tener tres URL diferentes con orígenes diferentes para esencialmente el mismo contenido puede ser confuso, existen dos razones principales por las que existen estas diferentes URL: el almacenamiento en memoria caché y la pre representación. Ambos son grandes contribuyentes a la velocidad de AMP, pero requieren nuevas URL y me extenderé sobre por qué es así.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;b&gt;&lt;u&gt;AMP Cache URLs&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Comencemos con las URL de caché de AMP. Paul Bakaus, un Defensor de Desarrolladores de Google para AMP, tiene una excelente publicación que describe por qué existen los cachés de AMP. La publicación de Paul entra en gran detalle describiendo los beneficios de AMP Caches, pero no responde completamente a la pregunta de por qué requieren nuevas URL. La respuesta a esta pregunta se reduce a uno de los principios de diseño de AMP: compilar para una fácil adopción. AMP intenta resolver algunos de los problemas de la web móvil a escala, por lo que sus componentes deben ser fáciles de usar para todos.&lt;br /&gt;
&lt;br /&gt;
Hay una variedad de opciones para obtener validación, proximidad a los usuarios y otros beneficios provistos por AMP Caches. Sin embargo, para un sitio pequeño que no gestiona sus propias entradas DNS, no tiene recursos de ingeniería para enviar contenido a través de API complicadas, o no puede pagar redes de distribución de contenido, muchas de estas tecnologías son inaccesibles.&lt;br /&gt;
&lt;br /&gt;
Por este motivo, Google AMP Cache funciona mediante una simple &quot;transformación&quot; de URL. Un webmaster solo tiene que hacer que su contenido esté disponible en alguna URL y el caché de AMP de Google puede almacenar y servir el contenido a través de la infraestructura mundial de Google a través de una nueva URL que refleja y transforma el original. Es tan simple como eso. Aprovechar un caché de AMP utilizando la URL original, por otro lado, requeriría que el webmaster modifique sus registros DNS o reconfigure sus servidores de nombres. Si bien algunos sitios hacen precisamente eso, el enfoque basado en URL es más fácil de usar para la gran mayoría de los sitios.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;URL de AMP Viewer&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En la sección anterior, aprendimos sobre las URL de caché de Google AMP: URL que apuntan a la versión almacenada en caché de un documento de AMP. Pero, ¿qué pasa con las www.google.com/ampURL? ¿Por qué son necesarios? Estas son URL de &quot;AMP Viewer&quot; y existen debido a la pre representación.&lt;br /&gt;
&lt;br /&gt;
El soporte integrado de AMP para la privacidad y el preescrito con conciencia de recursos rara vez se menciona y, a menudo, se malinterpreta. Los documentos de AMP se pueden preprocesar sin activar una cascada de recuperaciones de recursos, sin acaparar la CPU y la memoria de los usuarios, y sin ejecutar ningún código de análisis sensible a la privacidad. Esto funciona independientemente de si la aplicación de inserción es una página web móvil o una aplicación nativa. La necesidad de nuevas URL, sin embargo, proviene principalmente de implementaciones web móviles, entonces estoy usando Google&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;¿Cómo funciona la pre representación?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Cuando un usuario realiza una búsqueda en Google que devuelve resultados habilitados para AMP, algunos de estos resultados se renderizan previamente detrás de escena. Cuando el usuario hace clic en un resultado preprocesado, la página de AMP se carga instantáneamente.&lt;br /&gt;
&lt;br /&gt;
La preprocesamiento funciona cargando un iframe oculto en la página de incrustación (la página de resultados de búsqueda) con el contenido de la página de AMP y un parámetro adicional que indica que el documento de AMP solo se está preprocesando. El componente de JavaScript que maneja el ciclo de vida de estos iframes se llama &quot;AMP Viewer&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-img-500&quot;&gt;
&lt;amp-img alt=&quot;¿Qué hay en una URL de AMP?&quot; height=&quot;400&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI5lD-TAbzdspruLQ12vr5X1ZBP5yKhxN72sZXzvFpt5ICo_kp2Mm_6LBtNKhMRKEOEwfdg7Buh2MTH_7NnApLkoop1LNo2mxXnEfw_eUrdLRz-f2XRvMGqQKOlq_nPm54fRdZKV_GVBI1/s400/que-hay-en-una-url-de-amp.jpg&quot; width=&quot;366&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;

&lt;br /&gt;
&lt;center&gt;
&lt;b&gt;AMP Viewer representa un documento de AMP en un iFrame oculto.&lt;/b&gt;&lt;br /&gt;
&lt;/center&gt;
&lt;br /&gt;
El navegador del usuario carga el documento y el tiempo de ejecución AMP y comienza a renderizar la página AMP. Como todos los demás recursos, como imágenes e incrustaciones, son administrados por el tiempo de ejecución de AMP, no se carga nada más en este punto. El tiempo de ejecución de AMP puede decidir buscar algunos recursos, pero lo hará de una manera sensible a los recursos y la privacidad.&lt;br /&gt;
&lt;br /&gt;
Cuando un usuario hace clic en el resultado, todo lo que AMP Viewer debe hacer es mostrar el iframe que el navegador ya ha procesado y dejar que el tiempo de ejecución de AMP sepa que el documento de AMP ahora está visible.&lt;br /&gt;
&lt;br /&gt;
Como puede ver, esta operación es increíblemente barata: no hay actividad de red o navegación difícil en una página nueva. Esto lleva a una experiencia de carga casi instantánea del resultado.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;¿De dónde provienen las URL de google.com/amp?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Todo lo anterior ocurre mientras el usuario todavía está en la página original (en nuestro ejemplo, esa es la página de resultados de búsqueda). En otras palabras, el usuario no ha ido a una página diferente; acaban de ver un iframe en la misma página y, por lo tanto, el navegador no cambia la URL.&lt;br /&gt;
&lt;br /&gt;
Todavía queremos que la URL en el navegador refleje la página que se muestra en la pantalla y facilite el enlace de los usuarios. Cuando los usuarios presionan Actualizar en su navegador, esperan que aparezca el mismo documento y no la página de resultados de búsqueda subyacente. Entonces el espectador de AMP tiene que actualizar manualmente esta URL. Esto sucede usando la API de historial. Esta API permite que AMP Viewer actualice la barra de URL del navegador sin realizar una navegación difícil.&lt;br /&gt;
&lt;br /&gt;
La pregunta es a qué URL debe actualizarse el navegador. Idealmente, esta sería la URL del resultado en sí (por ejemplo, www.example.com/amp/doc.html); o la URL de caché de AMP (por ejemplo, www-example-com.cdn.ampproject.org/www.example.com/amp/doc.html). Lamentablemente, no puede ser ninguno de esos. Una de las principales restricciones de la API de historial es que la nueva URL debe tener el mismo origen que la URL original ( referencia ). Esto es reforzado por los navegadores (por razones de seguridad ), pero significa que en la Búsqueda de Google, esta URL debe estar en www.google.com de origen.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;¿Por qué se muestra una barra de encabezado?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La sección anterior explicaba las restricciones en las URL que un AMP Viewer debe manejar. Estas URL, sin embargo, pueden ser confusas y engañosas. Pueden abrir las puertas a los ataques de phishing. Si una página de AMP mostraba una página de inicio de sesión que se parece a la de Google y dice la barra de URL www.google.com, ¿cómo sabría un usuario que esta página no es en realidad la de Google? Ahí es donde entra la necesidad de una atribución adicional.&lt;br /&gt;
&lt;br /&gt;
Para proporcionar la atribución adecuada del contenido, cada AMP Viewer debe dejar en claro a los usuarios de dónde proviene el contenido que están buscando. Y una forma de lograr esto es agregar una barra de encabezado que muestre el origen &quot;verdadero&quot; de una página.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-img-500&quot;&gt;
&lt;amp-img alt=&quot;¿Qué hay en una URL de AMP?&quot; height=&quot;290&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZVVn9eWH6Q8ZxayLK0lY2Rv1-mVbtypsG15Z1CRp-gkODcC_t8aPVRknNqwFelzVsNA6OGYPg0NWW7QAIKCW2raekFawwK_JqeP6Bbrch8fWtWIXD63sBNOlhReoiao5QC_-HeA9HgEF/s400/que-hay-en-una-url-de-amp.jpg&quot; width=&quot;400&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;¿Qué sigue?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Espero que las secciones anteriores aclaren por qué existen estas diferentes URL y por qué debe haber un encabezado en cada visor de AMP. Hemos escuchado cómo se siente acerca de este enfoque y la importancia de las URL. Entonces, ¿qué sigue?&lt;br /&gt;
&lt;br /&gt;
Desde el lanzamiento de AMP en la Búsqueda de Google en febrero de 2016, se a seguido los siguientes pasos:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Todas las URL de Google (es decir, la URL caché de Google AMP y la dirección URL del visor Google AMP) reflejan la fuente original del contenido de la mejor manera posible: . www.google.com/amp/www.example.com/amp/doc.html&lt;br /&gt;
Cuando los usuarios se desplazan hacia abajo de la página para leer un documento, la barra de encabezado del visor de AMP se esconde, liberando el valioso espacio de la pantalla.&lt;br /&gt;
Cuando los usuarios visitan una URL de visor de Google AMP en una plataforma donde el visor no está disponible, se redirige a la página canónica del documento.&lt;/blockquote&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/667918001033107257'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/667918001033107257'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/que-hay-en-una-url-de-amp.html' title='¿Qué hay en una URL de AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3DeIsheQJCBVGiwsxVGQii_CFSMhiRSGnAYxk4wZOdkS2R-eDx5ryrnLUiNrrYo7Kl8Qs-cBcu9iDwxRmsgNLzSkS1U6AG0YMijkSORxZiC9LQPodS9KDoFkkRSNbacmEsdTV7DDMLfF-/s72-c/que-hay-en-una-url-de-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-1005673167260202300</id><published>2018-06-21T16:45:00.003-07:00</published><updated>2019-04-17T19:59:48.187-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML"/><title type='text'>AMP Google</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_LqzfIxY7BkxyAPljiJM6u6440M9hf7DZDGwrMGyciQZvGtdN2cOJwFC-2SmMlogV-mWhiXh8UOVGLFZP5mA9Sw-JMq02iDNaOl3i7ZSyqFTSoMPh7XjjbMEDcgpMcXv4uCN3ggqMCGmu/s1600/AMP-Google.jpg&quot; width=&quot;459&quot; height=&quot;321&quot; alt=&quot;AMP Google&quot;/&gt;&lt;/noscript&gt;
&lt;b&gt;&lt;u&gt;Acerca de AMP en la Búsqueda de Google&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La Búsqueda de Google indexa las páginas de AMP para proporcionar una experiencia web rápida y confiable. Cuando hay una página de AMP disponible, se puede mostrar en la búsqueda de dispositivos móviles como parte de los excelentes resultados y carruseles.&lt;br /&gt;
&lt;br /&gt;
En la búsqueda móvil, el icono de AMP ayuda a los usuarios a identificar rápidamente las páginas que se cargan de manera rápida y sin problemas. Cuando los usuarios seleccionan una página de AMP, la Búsqueda de Google recupera la página de Google AMP Cache, lo que permite una variedad de optimizaciones de la carga que a menudo hacen que estas páginas aparezcan de forma instantánea, como la ejecución previa. Actualmente, las páginas de AMP en el escritorio no se muestran con funciones avanzadas (como el logotipo y los carruseles de AMP); Las páginas AMP canónicas se comportan como resultados estándar.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Sus páginas AMP en los resultados de búsqueda de Google&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Su contenido de AMP podría aparecer en los resultados de búsqueda de Google en carruseles y resultados enriquecidos. Un carrusel es un contenedor para múltiples resultados enriquecidos del mismo tipo en su sitio. Un carrusel también puede contener recetas y artículos de diferentes sitios en un carrusel (por ejemplo, Historias principales). Un resultado enriquecedor es un resultado que incluye estilo, imágenes y otras características.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Funciones de búsqueda que funcionan con AMP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Agregue datos estructurados a su contenido para hacer que su página sea elegible para aparecer en carruseles y resultados enriquecidos. Ser elegible para una determinada función de búsqueda no garantiza la visualización de esa función.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;b&gt;&lt;i&gt;Categorías de funciones de búsqueda&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Carrusel de historias principales:&lt;/b&gt; un contenedor que incluye artículos, blogs en vivo y videos. Para ser elegible para aparecer en el carrusel de Historias principales, agregue datos estructurados para el artículo a su página canónica para uno o más de los siguientes tipos de esquema (dependiendo de su tipo de contenido):&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Article&lt;br /&gt;
NewsArticle (subtype of Article)&lt;br /&gt;
BlogPosting (subtype of Article)&lt;br /&gt;
LiveBlogPosting (subtype of BlogPosting)&lt;br /&gt;
DiscussionForumPosting (subtype of Article)&lt;br /&gt;
VideoObject (subtype of Article)&lt;/blockquote&gt;
&lt;b&gt;Carrusel de host&lt;/b&gt;: contenedor para múltiples resultados enriquecidos del mismo tipo en su sitio. Para ser elegible para aparecer en un carrusel de host, agregue datos estructurados para el artículo a su página canónica para uno o más de los siguientes tipos de esquema (dependiendo de su tipo de contenido):&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Article&lt;br /&gt;
NewsArticle (subtype of Article)&lt;br /&gt;
BlogPosting (subtype of Article)&lt;br /&gt;
LiveBlogPosting (subtype of BlogPosting)&lt;br /&gt;
DiscussionForumPosting (subtype of Article)&lt;br /&gt;
VideoObject (subtype of Article)&lt;/blockquote&gt;
&lt;b&gt;Resultado enriquecido:&lt;/b&gt; un resultado que incluye estilo, imágenes y otras características. Para ser elegible para aparecer en un resultado enriquecido, agregue datos estructurados a su página canónica para uno o más de los siguientes tipos de esquema (dependiendo de su tipo de contenido):&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Article&lt;br /&gt;
NewsArticle (subtype of Article)&lt;br /&gt;
BlogPosting (subtype of Article)&lt;br /&gt;
LiveBlogPosting (subtype of BlogPosting)&lt;br /&gt;
DiscussionForumPosting (subtype of Article)&lt;br /&gt;
VideoObject (subtype of Article)&lt;br /&gt;
Restaurant&lt;br /&gt;
Movie&lt;br /&gt;
Recipe&lt;br /&gt;
Video&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;El visor de Google AMP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Cuando su contenido de AMP está vinculado desde la Búsqueda de Google, puede aparecer en Google AMP Viewer. Su contenido está en caché y servido por Google AMP Cache para optimizar la entrega de contenido para una mejor experiencia del usuario. En la parte superior de Google AMP Viewer, se muestra el dominio de su contenido para que los usuarios entiendan quién lo publicó.&lt;br /&gt;
&lt;br /&gt;
Google AMP Viewer es un entorno híbrido donde puede recopilar datos sobre el usuario. La recopilación de datos por parte de Google se rige por la política de privacidad de Google. Como editor de páginas de AMP cuyo contenido se muestra en Google AMP Viewer, su recopilación de datos se rige por su política de privacidad. Debido a que elige los comportamientos y las integraciones de proveedores en su página de AMP, usted es responsable de cumplir con las obligaciones de cumplimiento derivadas de esas elecciones.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Mejore AMP para la Búsqueda de Google&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Puede mejorar su contenido de AMP para la Búsqueda de Google creando una página AMP básica, agregando datos estructurados, supervisando sus páginas y practicando con los &lt;a href=&quot;https://www.amphtmlenespanol.com/search/label/AMP%20Tutorial&quot; target=&quot;_blank&quot;&gt;ejemplos&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Crea una página AMP básica&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1 Crea tu primera página de AMP.&lt;br /&gt;
2 Siga las pautas de Búsqueda de Google para las páginas de AMP.&lt;br /&gt;
3 Haga que su contenido sea reconocible al vincular sus páginas. Para rastrear e indexar, la Búsqueda de Google requiere que una página de AMP se vincule con una &lt;a href=&quot;https://support.google.com/webmasters/answer/139066&quot; target=&quot;_blank&quot;&gt;página canónica&lt;/a&gt;. La página canónica puede ser una versión de la página que no sea de AMP o puede ser la propia de AMP. Para obtener más información, consulte &lt;a href=&quot;https://www.amphtmlenespanol.com/2018/06/que-hay-en-una-url-de-amp.html&quot;&gt;¿Qué hay en una URL de AMP?&lt;/a&gt;.&lt;br /&gt;
4 Asegúrese de que los usuarios puedan experimentar el mismo contenido y realizar las mismas acciones en las páginas de AMP que en las páginas canónicas correspondientes, siempre que sea posible.&lt;br /&gt;
5 Use la herramienta de &lt;a href=&quot;https://search.google.com/test/amp&quot; target=&quot;_blank&quot;&gt;prueba AMP&lt;/a&gt; para asegurarse de que su página cumpla con los requisitos de búsqueda de Google para un documento válido de AMP HTML.&lt;br /&gt;
6 Use el mismo &lt;a href=&quot;https://developers.google.com/search/docs/guides/mark-up-content&quot; target=&quot;_blank&quot;&gt;marcado de datos estructurados&lt;/a&gt; en las páginas AMP y canónicas.&lt;br /&gt;
7 Aplicar las mejores prácticas de contenido común:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Asegúrese de que su archivo &lt;a href=&quot;https://developers.google.com/search/reference/robots_txt&quot; target=&quot;_blank&quot;&gt;robots.txt&amp;nbsp;file&lt;/a&gt;&amp;nbsp;no bloquee su página de AMP. Use los meta robots noindex, &lt;a href=&quot;https://support.google.com/webmasters/answer/93710?&quot; target=&quot;_blank&quot;&gt;indexación de bloques&lt;/a&gt; y metaetiquetas de robots.&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;Siga las pautas para &lt;a href=&quot;https://support.google.com/webmasters/answer/189077?&quot; target=&quot;_blank&quot;&gt;hreflang&lt;/a&gt; para el idioma y las URL regionales. Para ejemplos específicos de AMP, vea Internacionalización.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Crea una página AMP usando un CMS&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Si sirve su contenido web a través de un Sistema de gestión de contenido (CMS), puede usar un complemento de CMS existente (como WordPress, Drupal o Joomla) o implementar una funcionalidad personalizada en su CMS para generar contenido de AMP. Si tiene la intención de personalizar su CMS, siga estas pautas además de Crear una página AMP básica:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;1&lt;/b&gt; Considere cómo los archivos HTML de AMP se adaptarán al esquema de ruta de URL de su sitio. Si está generando una página AMP además de una página canónica que no es de AMP, le recomendamos que elija uno de los siguientes esquemas de URL:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;a) http://www.example.com/myarticle/amp&lt;br /&gt;
&amp;nbsp; &amp;nbsp;b) http://www.example.com/myarticle.amp.html&lt;br /&gt;
&lt;b&gt;2&lt;/b&gt; Desarrolle una plantilla de marcado de datos estructurados. Aquí hay algunas pautas:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;a) Construya la plantilla según los requisitos para el tipo de contenido que está publicando.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;b) &lt;a href=&quot;https://github.com/ampproject/amphtml/tree/master/examples/metadata-examples&quot; target=&quot;_blank&quot;&gt;Consulte los ejemplos de metadatos del Proyecto AMP&lt;/a&gt; para ver ejemplos de plantillas de recetas, artículos, videos y reseñas.&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;Optimice para obtener resultados de búsqueda ricos en dispositivos móviles&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Use datos estructurados para mejorar la apariencia de su página en los resultados de búsqueda de Google para dispositivos móviles. Las páginas AMP con datos estructurados pueden aparecer en resultados enriquecidos en la búsqueda móvil, como el carrusel de historias principales o el carrusel de host.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1&amp;nbsp;&lt;a href=&quot;https://developers.google.com/search/docs/guides/intro-structured-data&quot; target=&quot;_blank&quot;&gt;Implementar datos estructurados&lt;/a&gt;. Para obtener más información sobre los datos estructurados compatibles con AMP, lea la primera información.&lt;br /&gt;
2 Verifique que sus datos estructurados se procesen correctamente utilizando la &lt;a href=&quot;https://search.google.com/structured-data/testing-tool&quot; target=&quot;_blank&quot;&gt;herramienta de prueba de datos estructurados&lt;/a&gt;.&lt;br /&gt;
3 Asegúrese de que su logotipo cumpla con las &lt;a href=&quot;https://developers.google.com/search/docs/data-types/article#logo-guidelines&quot; target=&quot;_blank&quot;&gt;pautas del logotipo de AMP&lt;/a&gt;. Si su logotipo falta o no está formateado correctamente, se mostrará o no se mostrará en absoluto en el carrusel de Historias principales.&lt;br /&gt;
4 Verifique su AMP completo para Búsqueda de Google utilizando la &lt;a href=&quot;https://search.google.com/test/amp&quot; target=&quot;_blank&quot;&gt;herramienta de prueba AMP&lt;/a&gt;.&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;Controle y mejore sus páginas&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Compruebe periódicamente todas sus páginas de AMP controlando los siguientes informes:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.google.com/webmasters/tools/accelerated-mobile-pages&quot; target=&quot;_blank&quot;&gt;Informe de AMP en Search Console&lt;/a&gt;: consulte las plantillas del sitio y otros problemas de implementación en todo el sitio que pueden afectar a un gran número de páginas de AMP.&lt;br /&gt;
&lt;a href=&quot;https://support.google.com/webmasters/answer/6381755&quot; target=&quot;_blank&quot;&gt;Informe de tarjetas enriquecidas en Search Console&lt;/a&gt;: identifique problemas con sus datos estructurados y oportunidades para proporcionar datos estructurados adicionales.&lt;br /&gt;
Si necesita actualizar inmediatamente el caché de Google AMP para publicar la última versión de su contenido, consulte &lt;a href=&quot;https://www.amphtmlenespanol.com/&quot; target=&quot;_blank&quot;&gt;Actualizar el contenido de AMP&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Si necesita dejar de publicar sus páginas de AMP desde los resultados de la Búsqueda de Google, siga con la opción Eliminar AMP de los resultados de la Búsqueda de Google.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Recursos&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Algunos recursos para obtener más información sobre otras integraciones de productos de Google para AMP:&lt;br /&gt;
&lt;br /&gt;
Obtenga información sobre &lt;a href=&quot;https://support.google.com/adsense/answer/7183212&quot; target=&quot;_blank&quot;&gt;cómo crear bloques de anuncios AMP&lt;/a&gt;.&lt;br /&gt;
Implemente &lt;a href=&quot;https://support.google.com/dfp_premium/topic/7178122&quot; target=&quot;_blank&quot;&gt;DoubleClick y AMP&lt;/a&gt; para monetizar sus páginas de carga rápida.&lt;br /&gt;
Use el Administrador de etiquetas de Google para optimizar y medir las iniciativas de marketing.&lt;br /&gt;
Agregue análisis a sus páginas AMP para rastrear las interacciones del usuario con el soporte incorporado de &lt;a href=&quot;https://developers.google.com/analytics/devguides/collection/amp-analytics/&quot; target=&quot;_blank&quot;&gt;Google Analytics&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Validar AMP para búsqueda de Google&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Después de crear el contenido de AMP, aquí hay algunas maneras de validar su contenido de AMP para la Búsqueda de Google:&lt;br /&gt;
&lt;br /&gt;
Use la &lt;a href=&quot;https://search.google.com/test/amp&quot; target=&quot;_blank&quot;&gt;herramienta de prueba AMP&lt;/a&gt; para asegurarse de que su contenido de AMP sea válido para la Búsqueda de Google.&lt;br /&gt;
Para los tipos de contenido de AMP aplicables, use la &lt;a href=&quot;https://search.google.com/structured-data/testing-tool&quot; target=&quot;_blank&quot;&gt;herramienta de prueba de datos estructurados&lt;/a&gt; para verificar que sus datos estructurados se analicen correctamente.&lt;br /&gt;
Use el &lt;a href=&quot;https://www.google.com/webmasters/tools/accelerated-mobile-pages?utm_medium=referral&amp;amp;utm_campaign=6155685&quot; target=&quot;_blank&quot;&gt;informe de AMP en Search Console&lt;/a&gt; para supervisar el rendimiento de todas las páginas de AMP en su sitio.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&quot;El informe de Accelerated Mobile Pages (AMP) muestra un recuento de las páginas AMP que se han indexado correctamente o que contienen errores relacionados con AMP detectados cuando Google rastreaba el sitio web. En este informe no se muestran los errores de conectividad, los enlaces rotos ni otros errores.&amp;nbsp; Las páginas con errores de AMP, o que no contengan los elementos de datos estructurados necesarios, no se mostrarán en los resultados de búsqueda de Google cuando se usen funciones relacionadas con AMP.&quot;&lt;/blockquote&gt;
&lt;b&gt;Repara los errores comunes de AMP&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Si su página de AMP no aparece en la Búsqueda de Google, intente los siguientes pasos:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Nota&lt;/i&gt;: Puede llevarle tiempo a Google indexar su contenido de AMP. Si Google ha indexado su contenido y necesita actualizar inmediatamente Google AMP Cache para que publique la última versión de su contenido, actualice Google AMP Cache.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;1&lt;/b&gt; Haga que su página sea reconocible al vincular sus páginas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp;¿Agregaste &lt;i&gt;rel=&quot;amphtml&quot;&lt;/i&gt; a la página canónica?&lt;br /&gt;
&amp;nbsp; &amp;nbsp;¿Agregó &lt;i&gt;rel=&quot;amphtml&quot;&lt;/i&gt; a otras páginas que no son de AMP (por ejemplo, móvil)?&lt;br /&gt;
&amp;nbsp; &amp;nbsp;¿Agregaste &lt;i&gt;rel=&quot;canonical&quot;&lt;/i&gt; a la página de AMP?&lt;br /&gt;
&lt;b&gt;2&lt;/b&gt; Siga las pautas de Búsqueda de Google para las páginas de AMP.&lt;br /&gt;
&lt;b&gt;3&lt;/b&gt; Haga que su contenido de AMP sea accesible para Googlebot:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Edite el archivo robots.txt de su sitio para permitir que Googlebot rastree la página canónica, la página AMP y los enlaces en los datos estructurados (si corresponde).&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Elimine todas las metaetiquetas de robots y encabezados HTTP de X-Robots-Tag de su contenido canónico y AMP. Para obtener más información, consulte &lt;a href=&quot;https://developers.google.com/search/reference/robots_meta_tag&quot; target=&quot;_blank&quot;&gt;las especificaciones de encabezado de Robots meta tag y X-Robots-Tag HTTP&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;4&lt;/b&gt; Asegúrese de que sus datos estructurados sigan las pautas de datos estructurados para su página y tipo de función. Para obtener más información acerca de los requisitos de datos estructurados para AMP, vea la información que se encuentra al principio de este post .&lt;/blockquote&gt;
&lt;br /&gt;
Si su página AMP aún no aparece en la Búsqueda de Google después de completar los pasos anteriores, estos son algunos motivos adicionales:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1 Es posible que algunas funciones de Búsqueda de Google no estén disponibles en su país.&lt;br /&gt;
3 Es posible que su sitio aún no esté indexado. Para obtener más información sobre el rastreo y la indexación, consulte las Preguntas frecuentes para webmasters.&lt;/blockquote&gt;
&lt;b&gt;&lt;u&gt;Eliminar el contenido de AMP de la Búsqueda de Google&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Esta página describe cómo eliminar el contenido de AMP de la Búsqueda de Google.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Punto clave:&lt;/b&gt; a lo largo de esta página, nos referimos a páginas canónicas, páginas AMP y páginas que no son de AMP. La página canónica puede ser una versión de la página que no sea de AMP o puede ser la propia de AMP. Puede tener una de las dos configuraciones de página posibles:&lt;br /&gt;
&lt;b&gt;Canonical AMP:&lt;/b&gt; una versión de una página, donde la página de AMP es la página canónica.&lt;br /&gt;
&lt;b&gt;Canonical no AMP:&lt;/b&gt; dos versiones de una página que incluye una página AMP y una página canónica no AMP.&lt;/blockquote&gt;
&lt;b&gt;&lt;i&gt;Hay tres opciones para eliminar el contenido de AMP:&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Elimine rápidamente todas las versiones de una página, incluidas las páginas AMP y no AMP canónicas&lt;br /&gt;
Elimine solo la página de AMP emparejada con una página canónica que no sea de AMP, mientras mantiene activa la página canónica no AMP.&lt;br /&gt;
Elimine el contenido de AMP con un CMS (con opciones para eliminar todas las versiones de una página, o solo la versión de AMP)&lt;/blockquote&gt;
&lt;b&gt;Elimine todas las versiones de contenido AMP, incluidos AMP y no AMP&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Esta sección describe cómo eliminar todas las versiones de contenido de AMP de la Búsqueda de Google, que incluye páginas de AMP y de otras.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;i&gt;Precaución&lt;/i&gt;&lt;/b&gt;: este método puede mostrar un mensaje de error al usuario. Solo use este método para eliminar su página de AMP tan rápido como sea posible de la Búsqueda de Google.&lt;/blockquote&gt;
&lt;br /&gt;
Para eliminar páginas AMP y no AMP de la Búsqueda de Google, siga los pasos a continuación:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1 Elimine las versiones AMP y no AMP de la página de su servidor o CMS.&lt;br /&gt;
2 Utilice la &lt;a href=&quot;https://www.google.com/webmasters/tools/removals&quot; target=&quot;_blank&quot;&gt;herramienta Eliminar contenido obsoleto&lt;/a&gt; para solicitar la eliminación de su página. Ingrese las URL (direcciones web) en sus versiones de AMP y las que no son de AMP de la página que desea eliminar.&lt;br /&gt;
3&amp;nbsp;&lt;a href=&quot;https://www.amphtmlenespanol.com/&quot; target=&quot;_blank&quot;&gt;Actualice Google AMP Cache&lt;/a&gt; para asegurarse de que su contenido de AMP se elimine del caché.&lt;br /&gt;
4 Verifique la eliminación de su página de AMP buscando su contenido mediante la Búsqueda de Google. Para verificar la eliminación de un gran número de páginas de AMP, use el &lt;a href=&quot;https://www.google.com/webmasters/tools/accelerated-mobile-pages?utm_medium=referral&amp;amp;utm_campaign=6155685&quot; target=&quot;_blank&quot;&gt;informe de Search Console AMP&lt;/a&gt;. Esté atento a una línea de tendencia decreciente en el gráfico de &quot;páginas AMP indexadas&quot;.&lt;/blockquote&gt;
&lt;br /&gt;
Puede verificar el estado de su solicitud en la página &lt;a href=&quot;https://www.google.com/webmasters/tools/removals&quot; target=&quot;_blank&quot;&gt;Eliminar contenido obsoleto&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Nota:&lt;/i&gt; Cuando elimina su página de AMP, hay un retraso antes de que el robot de Google descubra que se ha eliminado. La búsqueda de Google muestra un error al usuario durante este tiempo.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;Elimine solo páginas AMP, mientras conserva las páginas canónicas que no son AMP&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Esta sección describe cómo eliminar solo las páginas AMP de la Búsqueda de Google, al tiempo que conserva sus páginas canónicas que no son de AMP.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;Precaución:&lt;/i&gt; no elimine el contenido de AMP simplemente borrando el contenido del archivo. Los documentos que están vacíos y que faltan todos los márgenes se consideran inválidos. Cuando la Búsqueda de Google reconoce que un documento no es válido, la Búsqueda de Google continúa publicando la versión válida más antigua disponible.&lt;/blockquote&gt;
&lt;br /&gt;
Para eliminar la versión de AMP de su página de la Búsqueda de Google (conservando la página canónica que no es de AMP), siga los pasos a continuación:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;1&lt;/b&gt; Elimine el enlace rel=&quot;amphtml&quot; de la página canónica no AMP en el código fuente.&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;2&lt;/b&gt; Configure su servidor para que devuelva una respuesta HTTP 301 Moved Permanently o 302 Found para la página AMP eliminada.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;3&lt;/b&gt; Configure un redireccionamiento desde la página AMP eliminada a la página canónica no AMP.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;4&lt;/b&gt; Si desea eliminar una página de AMP de plataformas que no son de Google además de eliminar de la Búsqueda de Google, complete los pasos a continuación:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;a) Elimine su página de AMP para que ya no se pueda acceder configurando su servidor para enviar un HTTP 404 no encontrado para su página de AMP eliminada. Esto garantiza que Google AMP Cache no envíe contenido obsoleto a otras plataformas.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;b) &lt;a href=&quot;https://www.amphtmlenespanol.com/search/label/Amp%20HTML&quot; target=&quot;_blank&quot;&gt;Actualice Google AMP Cache&lt;/a&gt; para asegurarse de que su contenido de AMP se elimine del caché.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;c) Verifique la eliminación de su página de AMP buscando su contenido en la Búsqueda de Google. Para verificar la eliminación de un gran número de páginas de AMP, use el &lt;a href=&quot;https://www.google.com/webmasters/tools/accelerated-mobile-pages?utm_medium=referral&amp;amp;utm_campaign=6155685&quot; target=&quot;_blank&quot;&gt;informe de Search Console AMP&lt;/a&gt;. Esté atento a una línea de tendencia decreciente en el gráfico de &quot;páginas AMP indexadas&quot;.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;d) Si desea mantener permanentes los enlaces permanentes, configure su servidor para que envíe un redireccionamiento HTTP 301 de su página AMP eliminada a su página canónica no AMP.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;Elimine las páginas de AMP y las que no son de AMP con un CMS&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En general, los proveedores de CMS publican páginas AMP y no AMP al mismo tiempo. Para eliminar una sola página, anule la publicación o elimine la página, lo que elimina las versiones AMP y AMP de esa página.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Eliminar una sola página&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para eliminar una página y dejar de publicarla en sus formularios AMP y no AMP, use la interfaz CMS. Consulte la página de ayuda de su proveedor CMS para obtener detalles sobre cómo dejar de servir AMP:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://en.support.wordpress.com/google-amp-accelerated-mobile-pages/&quot; target=&quot;_blank&quot;&gt;Ayuda de WordPress.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://cgit.drupalcode.org/amp/tree/README.md?h=8.x-1.x&quot; target=&quot;_blank&quot;&gt;Drupal ayuda&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://support.squarespace.com/hc/en-us/articles/223766868-Using-AMP-with-Squarespace&quot; target=&quot;_blank&quot;&gt;Ayuda de SquareSpace&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Eliminar todas las páginas de AMP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Otra opción es deshabilitar AMP de su CMS.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Advertencia: esta opción elimina todas las páginas de AMP de su sitio.&lt;/blockquote&gt;
Para deshabilitar AMP, consulte la página de ayuda de su proveedor de CMS o comuníquese con su proveedor de CMS. Si su sitio está alojado en un dominio CMS, el CMS puede redirigir a los usuarios a la página canónica que no es de AMP después de que AMP esté desactivado. Si la redirección no ocurre, contacte a su proveedor de CMS para asistencia.&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/1005673167260202300'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/1005673167260202300'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/amp-google.html' title='AMP Google'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_LqzfIxY7BkxyAPljiJM6u6440M9hf7DZDGwrMGyciQZvGtdN2cOJwFC-2SmMlogV-mWhiXh8UOVGLFZP5mA9Sw-JMq02iDNaOl3i7ZSyqFTSoMPh7XjjbMEDcgpMcXv4uCN3ggqMCGmu/s72-c/AMP-Google.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-6111555724490790441</id><published>2018-06-10T15:21:00.004-07:00</published><updated>2019-04-17T20:00:00.283-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo crear Tabs con AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkDFAl8rCd7SH1XhE42qZ4bfLsA2xyUQ9N107mLPLcg7sYL2dkTdRMOWudrYUzoTAYjpef7snrYZZJtQLhdmCSzptwvOkV9fvMzMqNFXN845I4dGFMYI2vNs8IVbin4ynsM8zCtQR_wBi4/s1600/como-crear-tabs-con-amp.jpg&quot; width=&quot;504&quot; height=&quot;311&quot; alt=&quot;¿Cómo crear Tabs con AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a insertar Tabs con el formato AMP. Learn how to create tabs with AMP. ¿Tabs for amp is it possible?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Tabs&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Las Tabs son perfectas para aplicaciones web de una sola página, o para páginas web capaces de mostrar diferentes temas&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vamos a utilizar el siguiente componente:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-selector&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;How To Create Tabs with AMP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create Toggleable Tabs&lt;br /&gt;
&lt;br /&gt;
Paso 1) Agregar los componentes&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-selector&#39; src=&#39;https://cdn.ampproject.org/v0/amp-selector-0.1.js&#39;/&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2 Vamos a insertar un CSS para acoplar este ejemplo, inserte el CSS justo antes de &amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
section {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.amp-tabs-design .ampTabContainer {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: flex;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; flex-wrap: wrap;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design amp-selector {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 1rem;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design amp-selector [option][selected] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; outline: none;&lt;br /&gt;
}&lt;br /&gt;
amp-selector [option][selected] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: auto;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; outline: 1px solid rgba(0,0,0,0.7);&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-button {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; list-style: none;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; flex-grow: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
amp-selector [option] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-button[selected] .amp-tab-head {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-color: #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .amp-tab-head {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 15px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0.3rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; border-radius: 0.5rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; border: solid 1px #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; transition: all 0.3s;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #003;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-title {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Source Sans Pro&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1.4rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 700;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.align-center {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.amp-tabs-design .tab-button[selected] + .tab-content {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: block;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-content {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: none;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; order: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-top: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 1.5rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-top: 1rem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-txt-2 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-left: 3rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-bottom: 1rem;&lt;br /&gt;
}&lt;br /&gt;
.box-txt-2 h2 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 1.2em;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 10px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 500;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Montserrat&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1.4rem;&lt;br /&gt;
}&lt;br /&gt;
.box-txt-2 p {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #313131;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Roboto&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-style: normal;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 400;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 10px 0;&lt;br /&gt;
}&lt;br /&gt;
.fondo-background-color{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: #bdc3c7;&amp;nbsp; /* fallback for old browsers */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: -webkit-linear-gradient(to right, #2c3e50, #bdc3c7);&amp;nbsp; /* Chrome 10-25, Safari 5.1-6 */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: linear-gradient(to right, #2c3e50, #bdc3c7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */&lt;br /&gt;
}&lt;br /&gt;
.amp-polygon {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-clip-path: polygon(0 0%,100% 4%,100% 96%,0% 100%);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; clip-path: polygon(0 0%,100% 4%,100% 96%,0% 100%);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 85px 10px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; overflow: hidden;&lt;br /&gt;
}&lt;br /&gt;
.container{position:relative;margin-left:auto;margin-right:auto;padding-right:15px;padding-left:15px; overflow: hidden;}@media (min-width:576px){.container{padding-right:15px;padding-left:15px}}@media (min-width:768px){.container{padding-right:15px;padding-left:15px}}@media (min-width:992px){.container{padding-right:15px;padding-left:15px}}@media (min-width:1200px){.container{padding-right:15px;padding-left:15px}}@media (min-width:576px){.container{width:540px;max-width:100%}}@media (min-width:768px){.container{width:720px;max-width:100%}}@media (min-width:992px){.container{width:960px;max-width:100%}}@media (min-width:1200px){.container{width:1140px;max-width:100%}}&lt;br /&gt;
&lt;br /&gt;
/*! CSS Grid | http://ayudadeblogger.com */&lt;br /&gt;
@media screen and (min-width:1024px){.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%}}.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;margin:8px 0;padding:0}@media screen and (max-width:480px){.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{padding:0;width:100%}}&lt;br /&gt;
.center-col{float:none;margin-left:auto;margin-right:auto}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 3) Agregar el siguiente código después de la apertura &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;section class=&quot;amp-polygon fondo-background-color amp-tabs-design&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;align-center box-txt-2 col col-8 center-col&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Las mejores características en este proyecto&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Contrario a la creencia popular, Lorem Ipsum no es simplemente texto aleatorio. Tiene sus raíces en una pieza de literatura latina clásica del año 45 aC, lo que hace más de 2000 años.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-selector role=&quot;tablist&quot; layout=&quot;container&quot; class=&quot;ampTabContainer&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button&quot; selected=&quot;&quot; option=&quot;a&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AMP design&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;1080&quot; layout=&quot;responsive&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpees6VMeNh0QvSOtV4kIoKTo7y4gZyqkyW51KGbZGB84NqTyLGigPh4Lj9h2P3d8BIb-lrvcsL5sDGlaVwFOCgfTAahRkMs_u4uvwA_JtAT9k0fimrsXx0sybi6cl-sYXz8DBQyiztc4/s1600/amp-html-cover-slider.png&lt;/i&gt;&quot; width=&quot;1235&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button&quot; option=&quot;b&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Clean design&lt;br /&gt;
&amp;nbsp; &amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;670&quot; layout=&quot;responsive&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg__0wHxirl6S_n4UrTyhvTmrhCkGcyDl_pHmODEHrYgCE650xnJkSl0PJAaTswL9FFGQ_qCdhH9_xqIc6nX-hfYYhHa3IcMoCy8PB2jsn27BxHNjhaRAUUHwR8PTOoHN6jF_rBaVd7cBrb/s700/amp-modern-video-premium-blogger-template.png&lt;/i&gt;&quot; width=&quot;600&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button align-center&quot; option=&quot;c&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Mobile friendly&lt;br /&gt;
&amp;nbsp;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;1200&quot; layout=&quot;responsive&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3dsUsLEH1SNLK9qROOcEvN0sHmS4k6I5SEvOKft2oGk95xPIRMJ2JI_T0XLySlRriEKb28_A6l2t_1EKykrI40snFxpgElH2RaIK7x5T03QCelvot9sc8X-pqTQV6fXDG_RLl7UVzV_c/s1600/amp-fenix-blogger-template-amp-html.png&lt;/i&gt;&quot; width=&quot;1600&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;/amp-selector&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 4) Cambie las URLs de imágenes, también las palabras del ejemplo&lt;br /&gt;
&lt;br /&gt;
Paso 5) Demostración&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/06/ejemplo-3.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;

&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-selector&#39; src=&#39;https://cdn.ampproject.org/v0/amp-selector-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
section {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.amp-tabs-design .ampTabContainer {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: flex;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; flex-wrap: wrap;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design amp-selector {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 1rem;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design amp-selector [option][selected] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; outline: none;&lt;br /&gt;
}&lt;br /&gt;
amp-selector [option][selected] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: auto;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; outline: 1px solid rgba(0,0,0,0.7);&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-button {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; list-style: none;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; flex-grow: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
amp-selector [option] {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-button[selected] .amp-tab-head {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-color: #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .amp-tab-head {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 15px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0.3rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; border-radius: 0.5rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; border: solid 1px #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; transition: all 0.3s;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #003;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-title {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Source Sans Pro&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1.4rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 700;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.align-center {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.amp-tabs-design .tab-button[selected] + .tab-content {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: block;&lt;br /&gt;
}&lt;br /&gt;
.amp-tabs-design .tab-content {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: none;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; order: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-top: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 1.5rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-top: 1rem;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-txt-2 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-left: 3rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-bottom: 1rem;&lt;br /&gt;
}&lt;br /&gt;
.box-txt-2 h2 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 1.2em;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 10px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #000;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 500;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Montserrat&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1.4rem;&lt;br /&gt;
}&lt;br /&gt;
.box-txt-2 p {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #313131;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-family: &amp;amp;#39;Roboto&amp;amp;#39;,sans-serif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 1rem;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-style: normal;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: 400;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 10px 0;&lt;br /&gt;
}&lt;br /&gt;
.fondo-background-color{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: #bdc3c7;&amp;nbsp; /* fallback for old browsers */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: -webkit-linear-gradient(to right, #2c3e50, #bdc3c7);&amp;nbsp; /* Chrome 10-25, Safari 5.1-6 */&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;background: linear-gradient(to right, #2c3e50, #bdc3c7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */&lt;br /&gt;
}&lt;br /&gt;
.amp-polygon {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-clip-path: polygon(0 0%,100% 4%,100% 96%,0% 100%);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; clip-path: polygon(0 0%,100% 4%,100% 96%,0% 100%);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 85px 10px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; overflow: hidden;&lt;br /&gt;
}&lt;br /&gt;
.container{position:relative;margin-left:auto;margin-right:auto;padding-right:15px;padding-left:15px; overflow: hidden;}@media (min-width:576px){.container{padding-right:15px;padding-left:15px}}@media (min-width:768px){.container{padding-right:15px;padding-left:15px}}@media (min-width:992px){.container{padding-right:15px;padding-left:15px}}@media (min-width:1200px){.container{padding-right:15px;padding-left:15px}}@media (min-width:576px){.container{width:540px;max-width:100%}}@media (min-width:768px){.container{width:720px;max-width:100%}}@media (min-width:992px){.container{width:960px;max-width:100%}}@media (min-width:1200px){.container{width:1140px;max-width:100%}}&lt;br /&gt;
&lt;br /&gt;
/*! CSS Grid | http://ayudadeblogger.com */&lt;br /&gt;
@media screen and (min-width:1024px){.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%}}.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;margin:8px 0;padding:0}@media screen and (max-width:480px){.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{padding:0;width:100%}}&lt;br /&gt;
&lt;br /&gt;
.center-col{float:none;margin-left:auto;margin-right:auto}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section class=&quot;amp-polygon fondo-background-color amp-tabs-design&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;align-center box-txt-2 col col-8 center-col&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Las mejores características en este proyecto&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Contrario a la creencia popular, Lorem Ipsum no es simplemente texto aleatorio. Tiene sus raíces en una pieza de literatura latina clásica del año 45 aC, lo que hace más de 2000 años.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-selector role=&quot;tablist&quot; layout=&quot;container&quot; class=&quot;ampTabContainer&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button&quot; selected=&quot;&quot; option=&quot;a&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AMP design&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;1080&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpees6VMeNh0QvSOtV4kIoKTo7y4gZyqkyW51KGbZGB84NqTyLGigPh4Lj9h2P3d8BIb-lrvcsL5sDGlaVwFOCgfTAahRkMs_u4uvwA_JtAT9k0fimrsXx0sybi6cl-sYXz8DBQyiztc4/s1600/amp-html-cover-slider.png&quot; width=&quot;1235&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button&quot; option=&quot;b&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Clean design&lt;br /&gt;
&amp;nbsp; &amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;670&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg__0wHxirl6S_n4UrTyhvTmrhCkGcyDl_pHmODEHrYgCE650xnJkSl0PJAaTswL9FFGQ_qCdhH9_xqIc6nX-hfYYhHa3IcMoCy8PB2jsn27BxHNjhaRAUUHwR8PTOoHN6jF_rBaVd7cBrb/s700/amp-modern-video-premium-blogger-template.png&quot; width=&quot;600&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div role=&quot;tab&quot; class=&quot;tab-button align-center&quot; option=&quot;c&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h3 class=&quot;align-center amp-tabs-title amp-tab-head&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;Mobile friendly&lt;br /&gt;
&amp;nbsp;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div role=&quot;tabpanel&quot; class=&quot;tab-content&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-container-w&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;AMP design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Clean design&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box-txt-2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Mobile friendly&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-img alt=&quot;&quot; height=&quot;1200&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3dsUsLEH1SNLK9qROOcEvN0sHmS4k6I5SEvOKft2oGk95xPIRMJ2JI_T0XLySlRriEKb28_A6l2t_1EKykrI40snFxpgElH2RaIK7x5T03QCelvot9sc8X-pqTQV6fXDG_RLl7UVzV_c/s1600/amp-fenix-blogger-template-amp-html.png&quot; width=&quot;1600&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;lt;/amp-selector&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/6111555724490790441'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/6111555724490790441'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-crear-tabs-con-amp.html' title='¿Cómo crear Tabs con AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkDFAl8rCd7SH1XhE42qZ4bfLsA2xyUQ9N107mLPLcg7sYL2dkTdRMOWudrYUzoTAYjpef7snrYZZJtQLhdmCSzptwvOkV9fvMzMqNFXN845I4dGFMYI2vNs8IVbin4ynsM8zCtQR_wBi4/s72-c/como-crear-tabs-con-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-735943677493729927</id><published>2018-06-09T13:54:00.004-07:00</published><updated>2019-04-17T20:00:38.541-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo agregar imágenes con Lightboxes y Captions en AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlqA2ZQzxW0h65M5pfzAZxkude9K08yMK69h38yMO3MFXJL8rC08uXcB1iSmF7rzrOdoZvlTcCdI3pMBYaytrDuFAF6T8Qjx3526iSk6PDit-me5HP6sEVoUSxQNzG7iyVhwKS1RJuxN1S/s1600/como-agregar-imagenes-con-lightboxes-y-captions-con-amp.jpg&quot; width=&quot;490&quot; height=&quot;285&quot; alt=&quot;¿Cómo agregar imágenes con Lightboxes y Captions en AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a insertar imágenes con Lightboxes y Captions con AMP.&amp;nbsp;Images with Lightboxes and Captions.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vamos a utilizar el siguiente componente:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-image-lightbox&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Images with Lightboxes and Captions&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Paso 1) Agregar los componentes&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2 Vamos a insertar un CSS para acoplar este ejemplo, inserte el CSS justo antes de &amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
.container{position:relative;margin-left:auto;margin-right:auto;padding-right:15px;padding-left:15px; overflow: hidden;}@media (min-width:576px){.container{padding-right:15px;padding-left:15px}}@media (min-width:768px){.container{padding-right:15px;padding-left:15px}}@media (min-width:992px){.container{padding-right:15px;padding-left:15px}}@media (min-width:1200px){.container{padding-right:15px;padding-left:15px}}@media (min-width:576px){.container{width:540px;max-width:100%}}@media (min-width:768px){.container{width:720px;max-width:100%}}@media (min-width:992px){.container{width:960px;max-width:100%}}@media (min-width:1200px){.container{width:1140px;max-width:100%}}&lt;br /&gt;
&lt;br /&gt;
/*! CSS Grid | https://ayudadeblogger.com */&lt;br /&gt;
@media screen and (min-width:1024px){.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%}}.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;margin:8px 0;padding:0}@media screen and (max-width:480px){.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{padding:0;width:100%}}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 3) Agregar el siguiente código después de la apertura &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;figure&amp;gt;&lt;br /&gt;
&amp;lt;amp-img on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&lt;/i&gt;&quot; layout=&quot;responsive&quot; width=&quot;540&quot; height=&quot;360&quot; alt=&quot;AMP&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;i&gt;Lorem Ipsum Dolor Sit Amet&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/center&amp;gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/figure&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;figure&amp;gt;&lt;br /&gt;
&amp;lt;amp-img on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&lt;/i&gt;&quot; layout=&quot;responsive&quot; height=&quot;360&quot; width=&quot;539.3258426966293&quot; alt=&quot;AMP&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;lt;figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;i&gt;Lorem Ipsum Dolor Sit Amet&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/figure&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 4) Cambie las URLs de imagenes, también las palabras de ejemplo&lt;br /&gt;
&lt;br /&gt;
Paso 5) Demostración&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/04/imagen-lightboxes-y-captions.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
.container{position:relative;margin-left:auto;margin-right:auto;padding-right:15px;padding-left:15px; overflow: hidden;}@media (min-width:576px){.container{padding-right:15px;padding-left:15px}}@media (min-width:768px){.container{padding-right:15px;padding-left:15px}}@media (min-width:992px){.container{padding-right:15px;padding-left:15px}}@media (min-width:1200px){.container{padding-right:15px;padding-left:15px}}@media (min-width:576px){.container{width:540px;max-width:100%}}@media (min-width:768px){.container{width:720px;max-width:100%}}@media (min-width:992px){.container{width:960px;max-width:100%}}@media (min-width:1200px){.container{width:1140px;max-width:100%}}&lt;br /&gt;
&lt;br /&gt;
/*! CSS Grid | https://ayudadeblogger.com */&lt;br /&gt;
@media screen and (min-width:1024px){.col-1{width:8.33333%}.col-2{width:16.66667%}.col-3{width:25%}.col-4{width:33.33333%}.col-5{width:41.66667%}.col-6{width:50%}.col-7{width:58.33333%}.col-8{width:66.66667%}.col-9{width:75%}.col-10{width:83.33333%}.col-11{width:91.66667%}.col-12{width:100%}}.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;margin:8px 0;padding:0}@media screen and (max-width:480px){.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{padding:0;width:100%}}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;figure&amp;gt;&lt;br /&gt;
&amp;lt;amp-img on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&lt;/i&gt;&quot; layout=&quot;responsive&quot; width=&quot;540&quot; height=&quot;360&quot; alt=&quot;AMP&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt;Lorem Ipsum Dolor Sit Amet&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/center&amp;gt;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/figure&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;col col-6&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;figure&amp;gt;&lt;br /&gt;
&amp;lt;amp-img on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&lt;/i&gt;&quot; layout=&quot;responsive&quot; height=&quot;360&quot; width=&quot;539.3258426966293&quot; alt=&quot;AMP&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt;Lorem Ipsum Dolor Sit Amet&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/figcaption&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/figure&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/735943677493729927'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/735943677493729927'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-agregar-imagenes-con-lightboxes-y-captions-con-amp.html' title='¿Cómo agregar imágenes con Lightboxes y Captions en AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlqA2ZQzxW0h65M5pfzAZxkude9K08yMK69h38yMO3MFXJL8rC08uXcB1iSmF7rzrOdoZvlTcCdI3pMBYaytrDuFAF6T8Qjx3526iSk6PDit-me5HP6sEVoUSxQNzG7iyVhwKS1RJuxN1S/s72-c/como-agregar-imagenes-con-lightboxes-y-captions-con-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-7447585693399973301</id><published>2018-06-06T17:08:00.005-07:00</published><updated>2019-04-17T20:00:49.081-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo agregar un Carrusel de ancho completo con imágenes en AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtwqeodq4C7ef3bDiEelCkeD3bbc50SOy-YOfMErzoDTw0vjvJNWcDXLaGr3-1s8YPzdeyqYnaGbqK-uIN4DkkrWTo0KRfAKnubQCgMox9PAA5bL7q6zFTW5yOc4TZbqgHHTIz53OWEf8m/s1600/como-agregar-un-carrusel-de-ancho-completo-con-imagenes-en-amp.jpg&quot; width=&quot;528&quot; height=&quot;334&quot; alt=&quot;¿Cómo agregar un Carrusel de ancho completo con imágenes en AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a insertar un Carrusel de ancho completo con imágenes en lightbox con AMP. Full width carousel with images in lightbox.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vamos a utilizar los siguientes componentes:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-image-lightbox&lt;br /&gt;
amp-carousel&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;AMP Full width carousel with images in lightbox&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Paso 1) Agregar los componentes&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-carousel&#39; src=&#39;https://cdn.ampproject.org/v0/amp-carousel-0.1.js&#39;/&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2)&amp;nbsp;Agregar el siguiente código después de la apertura &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;slider-box&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-carousel class=&quot;carousel&quot; height=&quot;300&quot; layout=&quot;fixed-height&quot; type=&quot;carousel&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLRgswjujamJcz2vDWBcFN1yt2WK8gVJnqMqdTIRihsp6rqW4k9wr2-TSJQQ4iC30ANnYhPP_zpEAMIsJC105aQZmwThyfDLnaMDI0BKm8xVyvn7oySilXlicA0axc2ICAmyEgZMCq3ZM/s1600/amp-i.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox3&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVg5aDyQoJ6DbobqOPMjQrDuO30KW-WnBtsK6kQrxhaToSJZB6bPhOl962TkpTw0v7Vp4XqIzUAbu-v8pUg59lgSEiiwcFr6gDJSS641KUngK4bAf_tKbQk7Bx7ZO2iU_TCSaZ6nwtQEo/s1600/home-bg.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox4&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyZpCUhBSPwK0zvWypINKibB2GPzO7IBiajidoPzBLuV_aJN0-rtYyIHJUrMhyiohi53mtWqc4m7Nm9WUMDHTFaY2HJu092ECuzVD6hTZv7Ck8q8lVXJR-vDiC0DnzMWiDQFjDwFPw7ZQ/s1600/img-1.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox5&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0yJzsjq4xQZsMo0AMZKUO7d7nuDuW829OFS-JK4cvsUCY_IN6mV1cI2w-LXUixJgYv-dueiyvRRCt5rov07G5uuQrdThTAFm3fDSrs8BLSLePyS4dtaoSxsJI2yTfiJ27IfMr0EZIec/s1600/img-2.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox6&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-carousel&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox3&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox4&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox5&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox6&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 3) Cambie las URLs de imagenes&lt;br /&gt;
&lt;br /&gt;
Paso 4) Demostración&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/04/slider-2.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-carousel&#39; src=&#39;https://cdn.ampproject.org/v0/amp-carousel-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container-fluid&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;slider-box&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-carousel class=&quot;carousel&quot; height=&quot;300&quot; layout=&quot;fixed-height&quot; type=&quot;carousel&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&quot; on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLRgswjujamJcz2vDWBcFN1yt2WK8gVJnqMqdTIRihsp6rqW4k9wr2-TSJQQ4iC30ANnYhPP_zpEAMIsJC105aQZmwThyfDLnaMDI0BKm8xVyvn7oySilXlicA0axc2ICAmyEgZMCq3ZM/s1600/amp-i.jpg&quot; on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&quot; on=&quot;tap:lightbox3&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVg5aDyQoJ6DbobqOPMjQrDuO30KW-WnBtsK6kQrxhaToSJZB6bPhOl962TkpTw0v7Vp4XqIzUAbu-v8pUg59lgSEiiwcFr6gDJSS641KUngK4bAf_tKbQk7Bx7ZO2iU_TCSaZ6nwtQEo/s1600/home-bg.jpg&quot; on=&quot;tap:lightbox4&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyZpCUhBSPwK0zvWypINKibB2GPzO7IBiajidoPzBLuV_aJN0-rtYyIHJUrMhyiohi53mtWqc4m7Nm9WUMDHTFaY2HJu092ECuzVD6hTZv7Ck8q8lVXJR-vDiC0DnzMWiDQFjDwFPw7ZQ/s1600/img-1.jpg&quot; on=&quot;tap:lightbox5&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0yJzsjq4xQZsMo0AMZKUO7d7nuDuW829OFS-JK4cvsUCY_IN6mV1cI2w-LXUixJgYv-dueiyvRRCt5rov07G5uuQrdThTAFm3fDSrs8BLSLePyS4dtaoSxsJI2yTfiJ27IfMr0EZIec/s1600/img-2.jpg&quot; on=&quot;tap:lightbox6&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;300&quot; width=&quot;450&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-carousel&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox3&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox4&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox5&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox6&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7447585693399973301'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7447585693399973301'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-agregar-un-carrusel-de-ancho-completo-con-imagenes-en-amp.html' title='¿Cómo agregar un Carrusel de ancho completo con imágenes en AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtwqeodq4C7ef3bDiEelCkeD3bbc50SOy-YOfMErzoDTw0vjvJNWcDXLaGr3-1s8YPzdeyqYnaGbqK-uIN4DkkrWTo0KRfAKnubQCgMox9PAA5bL7q6zFTW5yOc4TZbqgHHTIz53OWEf8m/s72-c/como-agregar-un-carrusel-de-ancho-completo-con-imagenes-en-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4512452215847632507</id><published>2018-06-06T15:41:00.002-07:00</published><updated>2019-04-17T20:00:57.588-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'> ¿Cómo agregar un Slideshow con reproducción automática y Lightbox con AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjshRtamP2Rn-A9ZyGqEDgn3aqjOYPYfpKWOykYCDxMTfkDxTxt2SKacqZvn3WLWIEvkmt87WysMhh24ZkYdIpmN6DaIdHPxOuzbYby8UiCs1Z5ctvvnfTfWX05r4DJbzjgkdjzjZyzil_H/s1600/como-agregar-un-slideshow-con-reproduccion-automatica-y-lightbox-con-amp.jpg&quot; width=&quot;528&quot; height=&quot;320&quot; alt=&quot; ¿Cómo agregar un Slideshow con reproducción automática y Lightbox con AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a insertar un Slideshow con reproducción automática y Lightbox con AMP. Slider With Autoplay And Lightbox.&lt;br /&gt;
&lt;br /&gt;
AMP lightbox es perfecto para la web moderna, con funciones totalmente dinámicas&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Vamos a utilizar los siguientes componentes:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-image-lightbox&lt;br /&gt;
amp-carousel&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;AMP Slider With Autoplay And Lightbox&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Paso 1 Agregar los componentes&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-carousel&#39; src=&#39;https://cdn.ampproject.org/v0/amp-carousel-0.1.js&#39;/&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2 Agregar el siguiente código después de la apertura &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;slider-box&quot; data-autoplay=&quot;true&quot; data-delay=&quot;3000&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-carousel class=&quot;carousel&quot; height=&quot;9&quot; width=&quot;16&quot; layout=&quot;responsive&quot; type=&quot;slides&quot; loop=&quot;&quot; autoplay=&quot;autoplay&quot; delay=&quot;3000&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxRLOoZ4ZEPSEMRKoQ83QH04MOLDgP_woJhA-o4-DtlX_mmLy7vZCgZYDms8cF9Xe8JViJCDMNFx9H5VoOvMU7ZL70uuIZIJ9a5hwP3_FDd3ysXZp-UpxAhmN9oam2_-zXv8DnWBgqiDc/s1600/business-1.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox3&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVg5aDyQoJ6DbobqOPMjQrDuO30KW-WnBtsK6kQrxhaToSJZB6bPhOl962TkpTw0v7Vp4XqIzUAbu-v8pUg59lgSEiiwcFr6gDJSS641KUngK4bAf_tKbQk7Bx7ZO2iU_TCSaZ6nwtQEo/s1600/home-bg.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox4&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyZpCUhBSPwK0zvWypINKibB2GPzO7IBiajidoPzBLuV_aJN0-rtYyIHJUrMhyiohi53mtWqc4m7Nm9WUMDHTFaY2HJu092ECuzVD6hTZv7Ck8q8lVXJR-vDiC0DnzMWiDQFjDwFPw7ZQ/s1600/img-1.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox5&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0yJzsjq4xQZsMo0AMZKUO7d7nuDuW829OFS-JK4cvsUCY_IN6mV1cI2w-LXUixJgYv-dueiyvRRCt5rov07G5uuQrdThTAFm3fDSrs8BLSLePyS4dtaoSxsJI2yTfiJ27IfMr0EZIec/s1600/img-2.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox6&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-carousel&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox3&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox4&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox5&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox6&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 3 Cambie las URLs de imagenes&lt;br /&gt;
&lt;br /&gt;
Paso 4 Demostración&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/04/slider.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-image-lightbox&#39; src=&#39;https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-carousel&#39; src=&#39;https://cdn.ampproject.org/v0/amp-carousel-0.1.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;&amp;nbsp; &lt;br /&gt;
&amp;lt;div class=&quot;slider-box&quot; data-autoplay=&quot;true&quot; data-delay=&quot;3000&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-carousel class=&quot;carousel&quot; height=&quot;9&quot; width=&quot;16&quot; layout=&quot;responsive&quot; type=&quot;slides&quot; loop=&quot;&quot; autoplay=&quot;autoplay&quot; delay=&quot;3000&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3xWdF9AsnrnANstgTOgDYNZCep9VTMDJOmbQP3z59RzVS7AME_sgoW8zIWYGp4PCHJmERmXdvTSvTx1UZxx7qnj1M_guNWxgbPc-TFElSWyyqTeKgBls0kgJugJZMNcYqPj9e_9PxwxU/s1600/blog-3.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox1&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxRLOoZ4ZEPSEMRKoQ83QH04MOLDgP_woJhA-o4-DtlX_mmLy7vZCgZYDms8cF9Xe8JViJCDMNFx9H5VoOvMU7ZL70uuIZIJ9a5hwP3_FDd3ysXZp-UpxAhmN9oam2_-zXv8DnWBgqiDc/s1600/business-1.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox2&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQv2rqrF73Uic6PJAPu6xNPblMHfAwyl7EkiTKjhKoJ5x9QOlBHKBq-wnr7lhyphenhyphen1zqJMr2c1_40yMcS5Fp2fKrvdr6wCmzrGpgVN91XQ08oyturYWh2dbQReP3V1JyPlPSosE51NS9tDhw/s1600/funfact.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox3&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVg5aDyQoJ6DbobqOPMjQrDuO30KW-WnBtsK6kQrxhaToSJZB6bPhOl962TkpTw0v7Vp4XqIzUAbu-v8pUg59lgSEiiwcFr6gDJSS641KUngK4bAf_tKbQk7Bx7ZO2iU_TCSaZ6nwtQEo/s1600/home-bg.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox4&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyZpCUhBSPwK0zvWypINKibB2GPzO7IBiajidoPzBLuV_aJN0-rtYyIHJUrMhyiohi53mtWqc4m7Nm9WUMDHTFaY2HJu092ECuzVD6hTZv7Ck8q8lVXJR-vDiC0DnzMWiDQFjDwFPw7ZQ/s1600/img-1.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox5&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img class=&quot;carousel-img&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV0yJzsjq4xQZsMo0AMZKUO7d7nuDuW829OFS-JK4cvsUCY_IN6mV1cI2w-LXUixJgYv-dueiyvRRCt5rov07G5uuQrdThTAFm3fDSrs8BLSLePyS4dtaoSxsJI2yTfiJ27IfMr0EZIec/s1600/img-2.jpg&lt;/i&gt;&quot; on=&quot;tap:lightbox6&quot; role=&quot;button&quot; tabindex=&quot;0&quot; height=&quot;9&quot; width=&quot;12&quot; layout=&quot;responsive&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div placeholder=&quot;&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-carousel&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox1&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox2&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox3&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox4&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox5&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-image-lightbox id=&quot;lightbox6&quot; layout=&quot;nodisplay&quot;&amp;gt;&amp;lt;/amp-image-lightbox&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&amp;lt;/section&amp;gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4512452215847632507'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4512452215847632507'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-agregar-un-slideshow-con-reproduccion-automatica-y-lightbox-con-amp.html' title=' ¿Cómo agregar un Slideshow con reproducción automática y Lightbox con AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjshRtamP2Rn-A9ZyGqEDgn3aqjOYPYfpKWOykYCDxMTfkDxTxt2SKacqZvn3WLWIEvkmt87WysMhh24ZkYdIpmN6DaIdHPxOuzbYby8UiCs1Z5ctvvnfTfWX05r4DJbzjgkdjzjZyzil_H/s72-c/como-agregar-un-slideshow-con-reproduccion-automatica-y-lightbox-con-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-2376448143896122542</id><published>2018-06-06T14:01:00.002-07:00</published><updated>2019-04-17T20:01:07.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo crear una imagen de página completa con AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrW0s2lh50A5JyEkVyZhwLH4pSs3PtqlU_cndSAKD7BLKDfZqDIQCmlJe07al3chgXYsrE_UrSZTyicTfp8R-wx5jGwFjAcrx6KhW9-5dXzUxozOy4wfX9NK08SIM5cSp23VkhLqbVeof4/s1600/como-crear-una-imagen-de-pagina-completa-con-amp.jpg&quot; width=&quot;528&quot; height=&quot;332&quot; alt=&quot;¿Cómo crear una imagen de página completa con AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a crear una imagen de fondo de página completa con AMP.&amp;nbsp;Learn how to create a full page background image with AMP.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Video Tutorial&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Imagen de página completa con AMP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Aprenda a crear una imagen de fondo que cubra toda la ventana del navegador con AMP. El siguiente ejemplo le ayudara a insertar una imagen de fondo receptiva a pantalla completa&lt;br /&gt;
&lt;br /&gt;
Paso 1 Agregar el compenente&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2 Agregar el siguiente código justo después de la apertura &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;

&amp;lt;amp-img alt=&quot;AMP&quot; height=&quot;320&quot; layout=&quot;responsive&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgna6DREWTHFutz3mV-I3UyFo5NcNal54Z-614hcbYofnm6VXhYP6F1HMiLoFJhCif58Cd0HsfPSkaBVksC6CcnObCUCPPVQ3ILN2qcoy0RkfXDnOewkao9HZp7qDFKNqpgRq8FqKegeQ9l/s1600/amp-html.jpg&lt;/i&gt;&quot; width=&quot;500&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;
Paso 3 Cambie la URL de imagen&lt;br /&gt;
&lt;br /&gt;
Paso 4 Demostración&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/06/ejemplo-2.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;amp-img alt=&quot;AMP&quot; height=&quot;320&quot; layout=&quot;responsive&quot; src=&quot;&lt;i&gt;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgna6DREWTHFutz3mV-I3UyFo5NcNal54Z-614hcbYofnm6VXhYP6F1HMiLoFJhCif58Cd0HsfPSkaBVksC6CcnObCUCPPVQ3ILN2qcoy0RkfXDnOewkao9HZp7qDFKNqpgRq8FqKegeQ9l/s1600/amp-html.jpg&lt;/i&gt;&quot; width=&quot;500&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/2376448143896122542'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/2376448143896122542'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-crear-una-imagen-de-pagina-completa-con-amp.html' title='¿Cómo crear una imagen de página completa con AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrW0s2lh50A5JyEkVyZhwLH4pSs3PtqlU_cndSAKD7BLKDfZqDIQCmlJe07al3chgXYsrE_UrSZTyicTfp8R-wx5jGwFjAcrx6KhW9-5dXzUxozOy4wfX9NK08SIM5cSp23VkhLqbVeof4/s72-c/como-crear-una-imagen-de-pagina-completa-con-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-7205763850004107113</id><published>2018-06-05T15:55:00.003-07:00</published><updated>2018-06-16T16:44:37.335-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo crear un fondo de video en pantalla completa con AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7A_gZoOTeNwP5TM-p0MOCe6MNsE9OcFf5z2Qf7we7Y7u6k7XicmJ9-w5zrmRpHVpw5dIO1z2h7IJ5UJfYExRd2PthC-tS2SNJFNCTP8jiKEBIxik1HHoqv8KtvV4sOqzHCK8AfZZwUwB/s1600/como-crear-un-fondo-de-video-en-pantalla-completa.jpg&quot; width=&quot;601&quot; height=&quot;323&quot; alt=&quot;¿Cómo crear un fondo de video en pantalla completa con AMP?&quot;/&gt;&lt;/noscript&gt;
Aprenda a crear un fondo de video de pantalla completa con Amp.&amp;nbsp;Learn how to create a full screen video background with AMP.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Video Tutorial&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Vamos a utilizar Amp y Youtube para que muestre el video de una forma fácil y segura, también mostrara un título y una descripción con unos simples pasos.&lt;br /&gt;
&lt;br /&gt;
Paso 1) Agregar los componentes:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async src=&#39;https://cdn.ampproject.org/v0.js&#39;/&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&#39;amp-youtube&#39; src=&#39;https://cdn.ampproject.org/v0/amp-youtube-0.1.js&#39;/&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 2) Agregar el CSS&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
section {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Video */&lt;br /&gt;
&lt;br /&gt;
.box-video{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 802px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.opacity-video{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background: #222;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; overflow: hidden;&lt;br /&gt;
}&lt;br /&gt;
.opacity-video:before {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; content: &amp;amp;#39; &amp;amp;#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: block;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; opacity: 0.6;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -ms-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -o-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -moz-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-color: rgb(40, 50, 78)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-container {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 40%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-left: 10%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-transform: translate3d(-50%,-50%,0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 4;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-relative {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-txt {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 46px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: bold;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; letter-spacing: 2px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 50px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: -18px 0 1px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 41px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 8px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.box-video-subtext {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 21px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 29px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: -32px 0 3px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 0 0 41px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 6px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media only screen and (max-width: 1024px) {&lt;br /&gt;
.box-video {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 567px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
@media only screen and (max-width: 1006px){&lt;br /&gt;
.box-video {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 214px;&lt;br /&gt;
}&lt;br /&gt;
.box-video-container {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 40%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-left: 10%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-transform: translate3d(-50%,-50%,0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 4;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
}&lt;br /&gt;
.box-video-txt {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 13px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 32px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; letter-spacing: 2px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 4px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.box-video-subtext {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 12px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 24px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* End Video */&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 3) Agregar el siguiente código despues del &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-video&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-youtube class=&quot;opacity-video&quot;&amp;nbsp; id=&quot;video&quot; data-videoid=&quot;53mfiKTia-w&quot; height=&quot;290&quot; layout=&quot;responsive&quot; width=&quot;515&quot; data-param-controls=&quot;0&quot; data-param-showinfo=&quot;0&quot; data-param-mute=&quot;1&quot; data-param-rel=&quot;0&quot; data-param-autoplay=&quot;1&quot; data-param-loop=&quot;1&quot; data-param-playlist=&quot;53mfiKTia-w&quot; autoplay&amp;gt;&amp;lt;/amp-youtube&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;box-video-container container&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;box-video-relative&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h1 class=&quot;box-video-txt&quot;&amp;gt;FULL-SCREEN VIDEO BACKGROUND&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;box-video-subtext&quot;&amp;gt;&amp;lt;strong&amp;gt;Add breathtaking video background to your&amp;nbsp; website w/o touching the code.&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Paso 4) Mire su funcionamiento&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;https://amp-ejemplo.blogspot.com/2018/06/ejemplo-1.html&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
A continuación la estructura completa del ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;
Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html ⚡&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;&lt;br /&gt;
&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script async custom-element=&quot;amp-youtube&quot; src=&quot;https://cdn.ampproject.org/v0/amp-youtube-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;link rel=&quot;canonical&quot; href=&quot;https://www.amphtmlenespanol.com/&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;
section {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Video */&lt;br /&gt;
&lt;br /&gt;
.box-video{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 802px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.opacity-video{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background: #222;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; overflow: hidden;&lt;br /&gt;
}&lt;br /&gt;
.opacity-video:before {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; content: &amp;amp;#39; &amp;amp;#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; display: block;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 100%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; opacity: 0.6;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-position: 50% 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -ms-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -o-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -moz-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-size: cover;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; background-color: rgb(40, 50, 78)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-container {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 40%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-left: 10%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-transform: translate3d(-50%,-50%,0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 4;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-relative {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.box-video-txt {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 46px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-weight: bold;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; letter-spacing: 2px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 50px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: -18px 0 1px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 41px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 8px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.box-video-subtext {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 21px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 29px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: -32px 0 3px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 0 0 41px 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 6px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
@media only screen and (max-width: 1024px) {&lt;br /&gt;
.box-video {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 567px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
@media only screen and (max-width: 1006px){&lt;br /&gt;
.box-video {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; height: 214px;&lt;br /&gt;
}&lt;br /&gt;
.box-video-container {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: absolute;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 50%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; left: 40%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin-left: 10%;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -webkit-transform: translate3d(-50%,-50%,0);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; z-index: 4;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; width: 100%;&lt;br /&gt;
}&lt;br /&gt;
.box-video-txt {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 13px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 32px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; letter-spacing: 2px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding-bottom: 4px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; color: #fff;&lt;br /&gt;
}&lt;br /&gt;
.box-video-subtext {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; font-size: 12px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; line-height: 24px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; margin: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; padding: 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; position: relative;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; top: 0px;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; text-align: center;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* End Video */&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;box-video&quot;&amp;gt;&lt;br /&gt;
&amp;lt;amp-youtube class=&quot;opacity-video&quot;&amp;nbsp; id=&quot;video&quot; data-videoid=&quot;53mfiKTia-w&quot; height=&quot;290&quot; layout=&quot;responsive&quot; width=&quot;515&quot; data-param-controls=&quot;0&quot; data-param-showinfo=&quot;0&quot; data-param-mute=&quot;1&quot; data-param-rel=&quot;0&quot; data-param-autoplay=&quot;1&quot; data-param-loop=&quot;1&quot; data-param-playlist=&quot;53mfiKTia-w&quot; autoplay&amp;gt;&amp;lt;/amp-youtube&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;box-video-container container&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div class=&quot;box-video-relative&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h1 class=&quot;box-video-txt&quot;&amp;gt;FULL-SCREEN VIDEO BACKGROUND&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;box-video-subtext&quot;&amp;gt;&amp;lt;strong&amp;gt;Add breathtaking video background to your&amp;nbsp; website w/o touching the code.&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7205763850004107113'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7205763850004107113'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/06/como-crear-un-fondo-de-video-en-pantalla-completa.html' title='¿Cómo crear un fondo de video en pantalla completa con AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7A_gZoOTeNwP5TM-p0MOCe6MNsE9OcFf5z2Qf7we7Y7u6k7XicmJ9-w5zrmRpHVpw5dIO1z2h7IJ5UJfYExRd2PthC-tS2SNJFNCTP8jiKEBIxik1HHoqv8KtvV4sOqzHCK8AfZZwUwB/s72-c/como-crear-un-fondo-de-video-en-pantalla-completa.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-8780159882925400015</id><published>2018-04-20T14:07:00.000-07:00</published><updated>2018-04-20T14:08:13.522-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="User Consent"/><title type='text'>Flujo de consentimiento de usuario avanzado</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSCV61QEkGozb4vw32uHUx4Qhciu-1IKUnBFKeSUeW21TLfFeMxOoFpyAq-PlYA2Y1DTB_j0Rq68Pc8rWpfdtmc6PgJPM1BB9cm5dICqd-29gdcmQWNXhffWqICNUZLs4BBe9PqwJJZ4_h/s1600/flujo-de-consentimiento-de-usuario-avanzado.jpg&quot; width=&quot;590&quot; height=&quot;350&quot; alt=&quot;Flujo de consentimiento de usuario avanzado&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Los usuarios de hoy quieren un control adicional sobre su experiencia en línea. Además, los editores se enfrentan a una variedad de demandas diferentes sobre cómo informan y eligen a sus usuarios, desde políticas de proveedores hasta requisitos legales en evolución. El proyecto de fuente abierta AMP está trabajando para brindar a los editores y proveedores de tecnología herramientas para implementar sus controles de usuario preferidos y para respaldar sus variados requisitos de cumplimiento individual en sus páginas de AMP.&lt;br /&gt;
&lt;br /&gt;
Esta página muestra cómo se puede generar un flujo de consentimiento de bloqueo más avanzado. Mostrará los botones de aceptar y rechazar, que al hacer clic revelarán más información, como una lista de terceros usados sobre la aceptación del usuario, o un aviso de uso de datos generales sobre el rechazo del usuario.&lt;br /&gt;
&lt;br /&gt;
Importe el componente de consentimiento en el encabezado.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-consent&quot; src=&quot;https://cdn.ampproject.org/v0/amp-consent-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Importante&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El consentimiento se guarda en el almacenamiento local: después de aceptarlo / rechazarlo, solo volverá a aparecer el diálogo emergente después de eliminar el contenido del almacenamiento local para este host, por ejemplo, a través de &lt;a href=&quot;https://developers.google.com/web/tools/chrome-devtools/manage-data/local-storage#local-storage&quot; target=&quot;_blank&quot;&gt;Herramientas de desarrollo de Chrome.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Uso Básico&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El amp-consent componente de consentimiento de amplificador permite especificar el consentimiento del usuario requerido para esta página. Los puntos finales CORS se pueden especificar a través del atributo checkConsentHref. Este punto final se consultará mediante una solicitud POST para determinar si es necesario mostrar la IU de consentimiento especificada. La respuesta debería verse así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

{
&amp;nbsp; &#39;promptIfUnknown&#39;: boolean (true/false)
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
La respuesta indicará si el consentimiento debe mostrarse o no. Si necesita mostrarse, se mostrará el elemento con la ID indicada en promptUI.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-consent id=&quot;myConsent&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;consents&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;consent1&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;checkConsentHref&quot;: &quot;/samples_templates/consent/getConsent&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;promptUI&quot;: &quot;consentDialog&quot;
 &amp;nbsp; &amp;nbsp;&amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;postPromptUI&quot;: &quot;post-consent-ui&quot;
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;lightbox&quot;
&amp;nbsp; &amp;nbsp; id=&quot;consentDialog&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;lightbox-content&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;dismiss-button&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;button&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:myConsent.dismiss&quot;&amp;gt;X&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;message&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;h2 m1&quot;&amp;gt;Headline&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;m1&quot;&amp;gt;This is an important message requiring you to make a choice.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;choice&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn ampstart-btn-secondary caps mx1&quot;
&amp;nbsp;  &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:choice1.show,choice2.hide&quot;&amp;gt;Choice 1&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button class=&quot;ampstart-btn ampstart-btn-secondary caps&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:choice2.show,choice1.hide&quot;&amp;gt;Choice 2&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;choice1&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hidden
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;message&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;m1&quot;&amp;gt;This is some more information about this choice. Here&#39;s a list of items related to this choice.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-list width=&quot;auto&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;132&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/json/consent-items.json&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;m1&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;{{.}}&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-list&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myConsent.accept&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn ampstart-btn-secondary caps m1&quot;&amp;gt;Confirm&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id=&quot;choice2&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hidden
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;message&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;m1&quot;&amp;gt;This is some more information about this choice.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myConsent.reject&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn ampstart-btn-secondary caps m1&quot;&amp;gt;Confirm&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div id=&quot;post-consent-ui&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myConsent.prompt()&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn caps m1&quot;&amp;gt;Settings&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/amp-consent&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Utilice el data-block-on-consent atributo bloque de datos en el consentimiento para bloquear componentes de AMP hasta que se otorgue el consentimiento. Los componentes individuales de AMP pueden anular el comportamiento de bloqueo e implementar ellos mismos la lógica de bloqueo.&lt;br /&gt;
&lt;br /&gt;
Aquí hay una imagen que está bloqueada hasta que se dé el consentimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
Ejemplo
&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-img data-block-on-consent
  src=&quot;https://ampbyexample.com/img/landscape_lake_300x201.jpg&quot;
  width=&quot;300&quot;
  height=&quot;201&quot;&gt;
&lt;/amp-img&gt;
&lt;/div&gt;

&amp;lt;amp-img data-block-on-consent
&amp;nbsp; src=&quot;/img/landscape_lake_300x201.jpg&quot;
&amp;nbsp; width=&quot;300&quot;
&amp;nbsp; height=&quot;201&quot;&amp;gt;
&amp;lt;/amp-img&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Este anuncio también se bloqueará hasta que se otorgue el consentimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
Ejemplo
&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-ad data-block-on-consent
  data-slot=&quot;/30497360/a4a/a4a_native&quot;
  height=&quot;250&quot;
  type=&quot;doubleclick&quot;
  width=&quot;300&quot;&gt;
&lt;/amp-ad&gt;
&lt;/div&gt;

&amp;lt;amp-ad data-block-on-consent
&amp;nbsp; data-slot=&quot;/30497360/a4a/a4a_native&quot;
&amp;nbsp; height=&quot;250&quot;
&amp;nbsp; type=&quot;doubleclick&quot;
&amp;nbsp; width=&quot;300&quot;&amp;gt;
&amp;lt;/amp-ad&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;amp-consent id=&quot;myConsent&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;consents&quot;: {
        &quot;consent1&quot;: {
          &quot;checkConsentHref&quot;: &quot;/samples_templates/consent/getConsent&quot;,
          &quot;promptUI&quot;: &quot;consentDialog&quot;
        }
      },
      &quot;postPromptUI&quot;: &quot;post-consent-ui&quot;
    }
  &lt;/script&gt;
  &lt;div class=&quot;lightbox&quot;
    id=&quot;consentDialog&quot;&gt;
    &lt;div class=&quot;lightbox-content&quot;&gt;
      &lt;div class=&quot;dismiss-button&quot;
        role=&quot;button&quot;
        tabindex=&quot;0&quot;
        on=&quot;tap:myConsent.dismiss&quot;&gt;X&lt;/div&gt;
      &lt;div class=&quot;message&quot;&gt;
        &lt;div class=&quot;h2 m1&quot;&gt;Headline&lt;/div&gt;
        &lt;p class=&quot;m1&quot;&gt;This is an important message requiring you to make a choice.&lt;/p&gt;
      &lt;/div&gt;
      &lt;div id=&quot;choice&quot;&gt;
        &lt;button class=&quot;ampstart-btn ampstart-btn-secondary caps mx1&quot;
          on=&quot;tap:choice1.show,choice2.hide&quot;&gt;Choice 1&lt;/button&gt;
        &lt;button class=&quot;ampstart-btn ampstart-btn-secondary caps&quot;
          on=&quot;tap:choice2.show,choice1.hide&quot;&gt;Choice 2&lt;/button&gt;
      &lt;/div&gt;
      &lt;div id=&quot;choice1&quot;
        hidden
        class=&quot;message&quot;&gt;
        &lt;p class=&quot;m1&quot;&gt;This is some more information about this choice. Here&#39;s a list of items related to this choice.&lt;/p&gt;
        &lt;amp-list width=&quot;auto&quot;
          height=&quot;132&quot;
          layout=&quot;fixed-height&quot;
          src=&quot;/json/consent-items.json&quot;
          class=&quot;m1&quot;&gt;
          &lt;template type=&quot;amp-mustache&quot;&gt;
            &lt;li&gt;{{.}}&lt;/li&gt;
          &lt;/template&gt;
        &lt;/amp-list&gt;
        &lt;button on=&quot;tap:myConsent.accept&quot;
          class=&quot;ampstart-btn ampstart-btn-secondary caps m1&quot;&gt;Confirm&lt;/button&gt;
      &lt;/div&gt;
      &lt;div id=&quot;choice2&quot;
        hidden
        class=&quot;message&quot;&gt;
        &lt;p class=&quot;m1&quot;&gt;This is some more information about this choice.&lt;/p&gt;
        &lt;button on=&quot;tap:myConsent.reject&quot;
          class=&quot;ampstart-btn ampstart-btn-secondary caps m1&quot;&gt;Confirm&lt;/button&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id=&quot;post-consent-ui&quot;&gt;
    &lt;button on=&quot;tap:myConsent.prompt()&quot;
      class=&quot;ampstart-btn caps m1&quot;&gt;Settings&lt;/button&gt;
  &lt;/div&gt;
&lt;/amp-consent&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/8780159882925400015'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/8780159882925400015'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/04/flujo-de-consentimiento-de-usuario-avanzado.html' title='Flujo de consentimiento de usuario avanzado'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSCV61QEkGozb4vw32uHUx4Qhciu-1IKUnBFKeSUeW21TLfFeMxOoFpyAq-PlYA2Y1DTB_j0Rq68Pc8rWpfdtmc6PgJPM1BB9cm5dICqd-29gdcmQWNXhffWqICNUZLs4BBe9PqwJJZ4_h/s72-c/flujo-de-consentimiento-de-usuario-avanzado.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-5984115277875591163</id><published>2018-04-20T09:41:00.000-07:00</published><updated>2018-04-20T10:31:44.874-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="User Consent"/><title type='text'>Flujo de consentimiento básico del usuario</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Gqb8NSFjc3n2H-hCHLox730mQSMqztnct3rDogvzCjlvQ8h8UvaVdN9GK1uSNd-0x-Rq4NhyphenhyphenpRh9pO3WDRPe-eFsQCI0SAPj598ZIJYLR5D_qepX2_c25gvXsEI9KfZzBcQXBLP6qONg/s1600/flujo-de-consentimiento-basico-del-usuario.jpg&quot; width=&quot;590&quot; height=&quot;350&quot; alt=&quot;Flujo de consentimiento básico del usuario&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Los usuarios de hoy quieren un control adicional sobre su experiencia en línea. Además, los editores se enfrentan a una variedad de demandas diferentes sobre cómo informan y eligen a sus usuarios, desde políticas de proveedores hasta requisitos legales en evolución. El proyecto de fuente abierta AMP está trabajando para brindar a los editores y proveedores de tecnología herramientas para implementar sus controles de usuario preferidos y para respaldar sus variados requisitos de cumplimiento individual en sus páginas de AMP.&lt;br /&gt;
&lt;br /&gt;
Esta página muestra cómo se puede generar un flujo de consentimiento de bloqueo básico, que simplemente mostraría un mensaje emergente de bloqueo simple con un botón de aceptar y rechazar. Al rechazar algún contenido en la página se bloqueará.&lt;br /&gt;
&lt;br /&gt;
Importe el componente de consentimiento en el encabezado.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-consent&quot; src=&quot;https://cdn.ampproject.org/v0/amp-consent-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Importante&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El consentimiento se guarda en el almacenamiento local: después de aceptarlo / rechazarlo, solo volverá a aparecer el diálogo emergente después de eliminar el contenido del almacenamiento local para este host, por ejemplo, a través de Herramientas de desarrollo de Chrome.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Uso Básico&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El componente de consentimiento de amplificador permite especificar el consentimiento del usuario requerido para esta página. Los puntos finales CORS se pueden especificar a través del atributo checkConsentHref. El componente de consentimiento de amplificador verificará a través de una solicitud POST si es necesario mostrar la IU de consentimiento. La respuesta debería verse así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

{
&amp;nbsp; &quot;promptIfUnknown&quot;: boolean (true/false)
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Es posible volver a activar el cuadro de diálogo de consentimiento utilizando la acción myConsent.prompt (). Un caso de uso para esto es brindarles a los usuarios la opción de cambiar su configuración después de que se haya descartado el diálogo de consentimiento. Para que esto funcione, la UI posterior al consentimiento debe especificarse en el amp-consent JSON config: &quot;promptUI&quot;: &quot;consentDialog&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-consent id=&quot;myUserConsent&quot; layout=&quot;nodisplay&quot;&gt;&lt;script type=&quot;application/json&quot;&gt;{
        &quot;consents&quot;: {
          &quot;consent1&quot;: {
            &quot;checkConsentHref&quot;: &quot;/samples_templates/consent/getConsent&quot;,
            &quot;promptUI&quot;: &quot;consentDialog&quot;
          }
        },
        &quot;postPromptUI&quot;: &quot;post-consent-ui&quot;
      }&lt;/script&gt;&lt;div class=&quot;popupOverlay&quot; id=&quot;consentDialog&quot;&gt;&lt;div class=&quot;consentPopup&quot;&gt;&lt;div class=&quot;dismiss-button&quot; role=&quot;button&quot; tabindex=&quot;0&quot; on=&quot;tap:myUserConsent.dismiss&quot;&gt;X&lt;/div&gt;&lt;div class=&quot;h2 m1&quot;&gt;Headline&lt;/div&gt;&lt;p class=&quot;m1&quot;&gt;This is an important message requiring you to make a choice.&lt;/p&gt;&lt;p class=&quot;m1&quot;&gt;This is some more information about this choice. Here&#39;s a list of items related to this choice.&lt;/p&gt;&lt;amp-list width=&quot;auto&quot; height=&quot;132&quot; layout=&quot;fixed-height&quot; src=&quot;/json/consent-items.json&quot; class=&quot;m1&quot;&gt;&lt;template type=&quot;amp-mustache&quot;&gt;&lt;li&gt;{{.}}&lt;/li&gt;&lt;/template&gt;&lt;/amp-list&gt;&lt;button on=&quot;tap:myUserConsent.accept&quot; class=&quot;ampstart-btn ampstart-btn-secondary caps mx1&quot;&gt;Accept&lt;/button&gt; &lt;button on=&quot;tap:myUserConsent.reject&quot; class=&quot;ampstart-btn ampstart-btn-secondary caps&quot;&gt;Reject&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;post-consent-ui&quot;&gt;&lt;button on=&quot;tap:myUserConsent.prompt()&quot; class=&quot;ampstart-btn caps m1&quot;&gt;Settings&lt;/button&gt;&lt;/div&gt;&lt;/amp-consent&gt;
&lt;/div&gt;

&amp;lt;amp-consent id=&quot;myUserConsent&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;consents&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;consent1&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;checkConsentHref&quot;: &quot;/samples_templates/consent/getConsent&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;promptUI&quot;: &quot;consentDialog&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;postPromptUI&quot;: &quot;post-consent-ui&quot;
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;nbsp; &amp;lt;div class=&quot;popupOverlay&quot;
&amp;nbsp; &amp;nbsp; id=&quot;consentDialog&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;consentPopup&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;dismiss-button&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role=&quot;button&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabindex=&quot;0&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on=&quot;tap:myUserConsent.dismiss&quot;&amp;gt;X&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;h2 m1&quot;&amp;gt;Headline&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;m1&quot;&amp;gt;This is an important message requiring you to make a choice.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;m1&quot;&amp;gt;This is some more information about this choice. Here&#39;s a list of items related to this choice.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-list width=&quot;auto&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;132&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; src=&quot;/json/consent-items.json&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;m1&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template type=&quot;amp-mustache&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;{{.}}&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/amp-list&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myUserConsent.accept&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn ampstart-btn-secondary caps mx1&quot;&amp;gt;Accept&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myUserConsent.reject&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn ampstart-btn-secondary caps&quot;&amp;gt;Reject&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;div id=&quot;post-consent-ui&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;button on=&quot;tap:myUserConsent.prompt()&quot;
 &amp;nbsp; &amp;nbsp; class=&quot;ampstart-btn caps m1&quot;&amp;gt;Settings&amp;lt;/button&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/amp-consent&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Utilice el atributo bloque de datos data-block-on-consent en el consentimiento para bloquear componentes de AMP hasta que se otorgue el consentimiento. Los componentes individuales de AMP pueden anular el comportamiento de bloqueo e implementar ellos mismos la lógica de bloqueo.&lt;br /&gt;
&lt;br /&gt;
Aquí hay una imagen que está bloqueada hasta que se dé el consentimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
Ejemplo
&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-img data-block-on-consent
  src=&quot;https://ampbyexample.com/img/landscape_lake_300x201.jpg&quot;
  width=&quot;300&quot;
  height=&quot;201&quot;&gt;
&lt;/amp-img&gt;

&lt;/div&gt;

&amp;lt;amp-img data-block-on-consent
&amp;nbsp; src=&quot;/img/landscape_lake_300x201.jpg&quot;
&amp;nbsp; width=&quot;300&quot;
&amp;nbsp; height=&quot;201&quot;&amp;gt;
&amp;lt;/amp-img&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Este anuncio también se bloqueará hasta que se otorgue el consentimiento:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
Ejemplo
&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-ad data-block-on-consent
  data-slot=&quot;/30497360/a4a/a4a_native&quot;
  height=&quot;250&quot;
  type=&quot;doubleclick&quot;
  width=&quot;300&quot;&gt;
&lt;/amp-ad&gt;
&lt;/div&gt;

&amp;lt;amp-ad data-block-on-consent
&amp;nbsp; data-slot=&quot;/30497360/a4a/a4a_native&quot;
&amp;nbsp; height=&quot;250&quot;
&amp;nbsp; type=&quot;doubleclick&quot;
&amp;nbsp; width=&quot;300&quot;&amp;gt;
&amp;lt;/amp-ad&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;


</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/5984115277875591163'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/5984115277875591163'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/04/flujo-de-consentimiento-basico-del-usuario.html' title='Flujo de consentimiento básico del usuario'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Gqb8NSFjc3n2H-hCHLox730mQSMqztnct3rDogvzCjlvQ8h8UvaVdN9GK1uSNd-0x-Rq4NhyphenhyphenpRh9pO3WDRPe-eFsQCI0SAPj598ZIJYLR5D_qepX2_c25gvXsEI9KfZzBcQXBLP6qONg/s72-c/flujo-de-consentimiento-basico-del-usuario.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4838434022570670665</id><published>2018-02-04T13:45:00.000-08:00</published><updated>2018-06-07T08:00:18.269-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo agregar un Scroll to top en AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6ftIwBjx80L93BvP5eMYUL5DKdVOcrcXC_tQkCG978rpnY20pEUI6LyFRVRCRWXWL4Nf_BKsVJQUuzOSFowTRgASg0NAtIkF1UxXIv7ity_Pm_2uCjK4Hr0JovBP-wdTy7uOzL66W4lr/s1600/como-agregar-un-scroll-to-top-en-amp.jpg&quot; width=&quot;483&quot; height=&quot;301&quot; alt=&quot;¿Cómo agregar un Scroll to top en AMP?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Al combinar amp-position-observer con amp-animation se puede usar para implementar un botón scroll to top. Este patrón se usa a menudo en páginas de comercio electrónico donde el usuario tiene que desplazarse por una larga lista de artículos.&lt;br /&gt;
&lt;br /&gt;
Importe la extensión amp-position-observer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-position-observer&quot; src=&quot;https://cdn.ampproject.org/v0/amp-position-observer-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Importe la extensión amp-animation&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El CSS utilizado para estas muestras se incluye aquí como referencia.&lt;br /&gt;
&lt;br /&gt;
Estas reglas son simplemente necesarias para que las muestras funcionen, pero no son fundamentales para los conceptos que se tratan aquí.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;style amp-custom&amp;gt;

&amp;nbsp; .scrollToTop {
&amp;nbsp; &amp;nbsp; color: #fafafa;
&amp;nbsp; &amp;nbsp; font-size: 1.4em;
&amp;nbsp; &amp;nbsp; box-shadow: 0 1px 1.5px 0 rgba(0,0,0,.12), 0 1px 1px 0 rgba(0,0,0,.24);
&amp;nbsp; &amp;nbsp; width: 50px;
&amp;nbsp; &amp;nbsp; height: 50px;
&amp;nbsp; &amp;nbsp; border-radius: 100px;
&amp;nbsp; &amp;nbsp; border: none;
&amp;nbsp; &amp;nbsp; outline: none;
&amp;nbsp; &amp;nbsp; background: #E91E63;
&amp;nbsp; &amp;nbsp; z-index: 9999;
&amp;nbsp; &amp;nbsp; bottom: 10px;
&amp;nbsp; &amp;nbsp; right: 10px;
&amp;nbsp; &amp;nbsp; position: fixed;
&amp;nbsp; &amp;nbsp; opacity: 0;
&amp;nbsp; &amp;nbsp; visibility: hidden;
&amp;nbsp; }

&amp;nbsp; #marker {
&amp;nbsp; &amp;nbsp; position: absolute;
&amp;nbsp; &amp;nbsp; top: 100px;
&amp;nbsp; &amp;nbsp; width: 0px;
&amp;nbsp; &amp;nbsp; height: 0px;
&amp;nbsp; }
&amp;lt;/style&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Scroll to top&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Agregamos un elemento con id &lt;b&gt;top-page&lt;/b&gt; que podemos consultar más adelante para desplazarse.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;div id=&quot;top-page&quot;&amp;gt;&amp;lt;/div&amp;gt;


&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Usamos 2 elementos de animación de amp para activar la visibilidad del botón. El primero es para hacer que el botón sea visible ...&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;showAnim&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;200ms&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;iterations&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;direction&quot;: &quot;alternate&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;#scrollToTopButton&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;visibility&quot;: &quot;visible&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
... y el segundo es para agregar el botón.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;hideAnim&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;200ms&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;iterations&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;direction&quot;: &quot;alternate&quot;,
&amp;nbsp; &amp;nbsp;   &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;#scrollToTopButton&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;0&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;visibility&quot;: &quot;hidden&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Usamos amp-position-observer para comenzar la animación cuando el usuario comienza a desplazarse.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;div id=&quot;marker&quot;&amp;gt;
&amp;nbsp; &amp;lt;amp-position-observer on=&quot;enter:hideAnim.start; exit:showAnim.start&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Usamos la acción scrollTo para desplazar la página cuando se toca el botón.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;button id=&quot;scrollToTopButton&quot;
&amp;nbsp; on=&quot;tap:top-page.scrollTo(duration=200)&quot;
&amp;nbsp; class=&quot;scrollToTop&quot;&amp;gt;⌃&amp;lt;/button&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4838434022570670665'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4838434022570670665'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/como-agregar-un-scroll-to-top-en-amp.html' title='¿Cómo agregar un Scroll to top en AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6ftIwBjx80L93BvP5eMYUL5DKdVOcrcXC_tQkCG978rpnY20pEUI6LyFRVRCRWXWL4Nf_BKsVJQUuzOSFowTRgASg0NAtIkF1UxXIv7ity_Pm_2uCjK4Hr0JovBP-wdTy7uOzL66W4lr/s72-c/como-agregar-un-scroll-to-top-en-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-3807704638563510330</id><published>2018-02-04T11:52:00.000-08:00</published><updated>2018-02-04T11:56:02.697-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><title type='text'> Conceptos básicos de los efectos scrollbound en AMP</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOJyM-O3cUTHBP_1est_t6LYdr_L_4wFdAjSM1UNWl-bFOPeAB2QjjouUdfYCpgKrAhbtK7yTphjUHgEUtDRXGjCfwc64j3svomlN_Va0plZz7IATzcD2OO_t6FM1zca5I-qAb0XaXjwkP/s1600/conceptos-basicos-de-los-efectos-scrollbound-en-amp.jpg&quot; width=&quot;482&quot; height=&quot;327&quot; alt=&quot; Conceptos básicos de los efectos scrollbound en AMP&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.amphtmlenespanol.com/search/label/Efectos%20visuales&quot; target=&quot;_blank&quot;&gt;Efectos de transición para AMP HTML&lt;/a&gt; - El amp-position-observer combinado con la amp-animation es un poderoso elemento básico que puede manejar varios casos de uso, tales como animaciones de desplazamiento hacia un lado, efectos de paralaje y transiciones a medida que los elementos entran y salen de la ventana gráfica.&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;p-large&quot;&gt;Puede seguir las instrucciones que se detalla en cada uno de los siguientes tutoriales&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
&lt;a href=&quot;https://www.amphtmlenespanol.com/2018/02/como-insertar-animaciones-scrollbound-en-amp-html.html&quot; target=&quot;_blank&quot;&gt;¿Cómo insertar animaciones Scrollbound en AMP HTML? &lt;/a&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
&lt;a href=&quot;https://www.amphtmlenespanol.com/2018/02/transiciones-de-desvanecimiento-y-deslizamiento-en-amp.html&quot; target=&quot;_blank&quot;&gt;Transiciones de desvanecimiento y deslizamiento en AMP HTML &lt;/a&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
&lt;a href=&quot;https://www.amphtmlenespanol.com/2018/02/como-agregar-un-parallax-en-amp-html.html&quot; target=&quot;_blank&quot;&gt;¿Cómo agregar un Parallax en AMP HTML? &lt;/a&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
&lt;a href=&quot;https://www.amphtmlenespanol.com/2018/02/como-agregar-una-transicion-al-componente-amp-carrusel.html&quot; target=&quot;_blank&quot;&gt;¿Cómo agregar una transición al componente amp-carrusel?&lt;/a&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b class=&quot;p-large&quot;&gt;Información&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;amp-position-observer&lt;/b&gt; es un componente funcional que supervisa la posición de un elemento dentro de la ventana gráfica a medida que el usuario se desplaza, y distribuye enter, exit y scroll: eventos &amp;lt;Position In Viewport As a Percentage&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
A cambio, estos eventos se pueden utilizar para reproducir, pausar o buscar líneas de tiempo de animación definidas por amp-animation para crear efectos basados ​​en visibilidad y scrollbound.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;amp-animation&lt;/b&gt; es un componente de interfaz de usuario que se basa en la API de animaciones web para definir y ejecutar animaciones de fotogramas clave en documentos de AMP.&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3807704638563510330'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3807704638563510330'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/conceptos-basicos-de-los-efectos-scrollbound-en-amp.html' title=' Conceptos básicos de los efectos scrollbound en AMP'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOJyM-O3cUTHBP_1est_t6LYdr_L_4wFdAjSM1UNWl-bFOPeAB2QjjouUdfYCpgKrAhbtK7yTphjUHgEUtDRXGjCfwc64j3svomlN_Va0plZz7IATzcD2OO_t6FM1zca5I-qAb0XaXjwkP/s72-c/conceptos-basicos-de-los-efectos-scrollbound-en-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4006342260293308725</id><published>2018-02-04T11:29:00.002-08:00</published><updated>2018-02-04T11:29:38.215-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><title type='text'>¿Cómo agregar una transición al componente amp-carrusel?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNmEAnoaoV-xYeE1zP0-l0-Ktkj7otXWawXSXiafTo10J02-Us71SEcQwB7bgyGL27vmyQmjBtJ9CKRjBc9DSh-MYXqsCYxQ9xi-uQ6Ki1yuKEEmLuYXrSJT5x-3KmOE2uG-ea7fEhGnQ5/s1600/como-agregar-una-transicion-al-componente-amp-carrusel.jpg&quot; width=&quot;483&quot; height=&quot;307&quot; alt=&quot;¿Cómo agregar una transición al componente amp-carrusel?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Aprenda a insertar una transición al componente amp-carrusel. También podemos usar estos efectos con otros componentes de AMP.&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;large&quot;&gt;Primero deberá insertar los siguientes scripts&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Inserte la extencion amp-position-observer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-position-observer&quot; src=&quot;https://cdn.ampproject.org/v0/amp-position-observer-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Importe la extencion amp-animation&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El CSS utilizado para este ejemplo se incluye aquí como referencia.&lt;br /&gt;
&lt;br /&gt;
Estas reglas son simplemente necesarias para que las muestras funcionen, pero no son fundamentales para los conceptos que se tratan aquí.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

.carousel-container {
    margin-right: -60%;
    margin-left: 60%;
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
En esta muestra, tenemos un carrusel donde el primer elemento se empuja hacia la derecha y cuando el carrusel se vuelve visible, vuelve a su lugar y proporciona una &quot;hint&quot; visual de que el carrusel se puede desplazar horizontalmente&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;amp-carousel class=&quot;carousel-container&quot;
  height=&quot;300&quot;
  layout=&quot;fixed-height&quot;
  type=&quot;carousel&quot;&gt;

  &lt;amp-position-observer on=&quot;enter:carouselTrasnsition.start&quot;
    intersection-ratios=&quot;0.8&quot;
    layout=&quot;nodisplay&quot;&gt;
  &lt;/amp-position-observer&gt;

  &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv9t4dajHirdtckp9M0edH8L86Ut1m3nIyl7BcfoTbDTDodWSeonhY_qtvgBam4cp3v-tar1Z_gWmQHPIWiqQ2CB4ivt7x0jr_ZMw-MR1WQLPxvEYQNjDo74MgDOLAtouSRsIIFKAVjYrc/s320/lifestyle-1-750x430.jpg&quot;
    width=&quot;320&quot;
    height=&quot;183&quot;
    alt=&quot;a sample image&quot;&gt;&lt;/amp-img&gt;
  &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj82SQNW83WPMUNIx900iWSmTVjd835COwDrqkLYEd6l8Gs1XpofdmaR9qLE4qsyNwX0S5tUJxOiM7_XwEA6x5VNOlPHDkIFmOT3d3ppuUPJpEr_8o8HEFL1tkrktuNLJHWcLX8M3sQ_uVd/s320/tech-8-750x430.jpg&quot;
    width=&quot;320&quot;
    height=&quot;183&quot;
    alt=&quot;another sample image&quot;&gt;&lt;/amp-img&gt;
  &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5R7l21AU4c3_Yhb07x65RyZfQCNzZmRXFdOmIcrvY-MKZNuN_MHqWpTjugk8hcZ0C1yJepntjcFJ9F691rxdIOixSUU_ss0Fx0X3H90MizlR_iPahA2uethh3CbVWjYfExQ2J-KyIWneJ/s320/lifestyle-14-750x430.jpg&quot;
    width=&quot;320&quot;
    height=&quot;183&quot;
    alt=&quot;and another sample image&quot;&gt;&lt;/amp-img&gt;
  &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ22GwHdxVP9SF7v3StL35MFwKDbaEOM2n0qLhg8OOrjoK6Frv_SfiyGA4NxRyHZdl1iEu2RlLmGIZDGn8op2JlK3_olC7V2Vi_TuufzxfPXxoaJrburCcJBlg9lbdpZ3c9IyIP6TGjvTo/s320/lifestyle-4-750x430.jpg&quot;
    width=&quot;320&quot;
    height=&quot;183&quot;
    alt=&quot;and another sample image&quot;&gt;&lt;/amp-img&gt;
&lt;/amp-carousel&gt;

&lt;amp-animation id=&quot;carouselTrasnsition&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;duration&quot;: &quot;500ms&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;easing&quot;: &quot;ease-in&quot;,
      &quot;delay&quot;: &quot;200ms&quot;,
      &quot;animations&quot;: [{
        &quot;selector&quot;: &quot;.carousel-container&quot;,
        &quot;keyframes&quot;: [{
          &quot;transform&quot;: &quot;translateX(-60%)&quot;
        }]
      }]
    }
  &lt;/script&gt;
&lt;/amp-animation&gt;

&lt;/div&gt;

&amp;lt;amp-carousel class=&quot;carousel-container&quot;
&amp;nbsp; height=&quot;300&quot;
&amp;nbsp; layout=&quot;fixed-height&quot;
&amp;nbsp; type=&quot;carousel&quot;&amp;gt;

&amp;nbsp; &amp;lt;amp-position-observer on=&quot;enter:carouselTrasnsition.start&quot;
&amp;nbsp; &amp;nbsp; intersection-ratios=&quot;0.8&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;

&amp;lt;amp-img src=&quot;https://unsplash.it/800/600?image=1003&quot;
&amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;a sample image&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &lt;/pre&gt;
&lt;pre&gt;&amp;lt;amp-img src=&quot;https://unsplash.it/800/600?image=1043&quot;
&amp;nbsp; &amp;nbsp; width=&quot;400&quot;
&amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;another sample image&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;amp-img src=&quot;https://unsplash.it/800/600?image=1032&quot;
&amp;nbsp; &amp;nbsp; width=&quot;400&quot;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; height=&quot;300&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;and another sample image&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;/amp-carousel&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Aquí definimos nuestra animación de tiempo determinado con un retraso de 200 ms que deslizará el carrusel hacia la izquierda en 500 ms.&lt;br /&gt;
&lt;br /&gt;
Esta animación solo será activada una vez por el observador de posición como se define arriba.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;carouselTrasnsition&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;500ms&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;easing&quot;: &quot;ease-in&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;delay&quot;: &quot;200ms&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;.carousel-container&quot;,
&amp;nbsp; &amp;nbsp;   &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateX(-60%)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4006342260293308725'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4006342260293308725'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/como-agregar-una-transicion-al-componente-amp-carrusel.html' title='¿Cómo agregar una transición al componente amp-carrusel?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNmEAnoaoV-xYeE1zP0-l0-Ktkj7otXWawXSXiafTo10J02-Us71SEcQwB7bgyGL27vmyQmjBtJ9CKRjBc9DSh-MYXqsCYxQ9xi-uQ6Ki1yuKEEmLuYXrSJT5x-3KmOE2uG-ea7fEhGnQ5/s72-c/como-agregar-una-transicion-al-componente-amp-carrusel.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4862114807300964538</id><published>2018-02-04T10:19:00.006-08:00</published><updated>2018-06-07T08:00:18.272-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo agregar un Parallax en AMP HTML?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB3tWQV4lDe60Ays_4zDTWpnhHGRm1ESEbUVTCgNJB7e0Jl0MjGL2M10H6eLV8hYWbAv3faUDT-se1gKvuBsvqydTUy0c_s-GQ4zt4rJtwYKe6KUi58Q60AEGh1OhdHAfrRw_LLR9Y37dS/s1600/como-agregar-un-parallax-en-amp-html.jpg&quot; width=&quot;523&quot; height=&quot;365&quot; alt=&quot;¿Cómo agregar un Parallax en AMP HTML?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Aprenda a insertar una ventana de imagen Parallax en el formato AMP HTML realizando unos simples pasos, y así optimizar el sitio web que está creando en AMP.&lt;br /&gt;

&lt;br /&gt;
Parallax es otro efecto que es posible combinando amp-animation y amp-position-observer.&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;large&quot;&gt;Primero deberá insertar los siguientes scripts&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Inserte la extencion amp-position-observer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-position-observer&quot; src=&quot;https://cdn.ampproject.org/v0/amp-position-observer-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Importe la extencion amp-animation&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El CSS utilizado para este ejemplo se incluye aquí como referencia.&lt;br /&gt;
&lt;br /&gt;
Estas reglas son simplemente necesarias para que las muestras funcionen, pero no son fundamentales para los conceptos que se tratan aquí.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

.parallax-image-window {
    overflow: hidden;
}
.parallax-image-window amp-img {
   margin-bottom: -30%;
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Parallax normalmente implica traducir un elemento en el eje Y a medida que el usuario se desplaza.&lt;br /&gt;
&lt;br /&gt;
Aquí definimos una escena que tiene una altura menor que la imagen dentro de ella, mientras el usuario se desplaza, movemos la imagen creando una ventana de paralaje en la imagen.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;div class=&quot;parallax-image-window&quot;&gt;

  &lt;amp-position-observer on=&quot;scroll:parallaxTransition.seekTo(percent=event.percent)&quot;
    intersection-ratios=&quot;1&quot;
    layout=&quot;nodisplay&quot;&gt;
  &lt;/amp-position-observer&gt;

  &lt;amp-img id=&quot;parallaxImage&quot;
    width=&quot;1600&quot;
    height=&quot;1083&quot;
    layout=&quot;responsive&quot;
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgna6DREWTHFutz3mV-I3UyFo5NcNal54Z-614hcbYofnm6VXhYP6F1HMiLoFJhCif58Cd0HsfPSkaBVksC6CcnObCUCPPVQ3ILN2qcoy0RkfXDnOewkao9HZp7qDFKNqpgRq8FqKegeQ9l/s1600/amp-html.jpg&quot;
    alt=&quot;Picture of an elephant&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;

&lt;amp-animation id=&quot;parallaxTransition&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;duration&quot;: &quot;1&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;direction&quot;: &quot;reverse&quot;,
      &quot;animations&quot;: [{
        &quot;selector&quot;: &quot;#parallaxImage&quot;,
        &quot;keyframes&quot;: [{
          &quot;transform&quot;: &quot;translateY(-30%)&quot;
        }]
      }]
    }
  &lt;/script&gt;
&lt;/amp-animation&gt;
&lt;/div&gt;

&amp;lt;div class=&quot;parallax-image-window&quot;&amp;gt;

&amp;nbsp; &amp;lt;amp-position-observer on=&quot;scroll:parallaxTransition.seekTo(percent=event.percent)&quot;
&amp;nbsp; &amp;nbsp; intersection-ratios=&quot;1&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;

&amp;nbsp; &amp;lt;amp-img id=&quot;parallaxImage&quot;
&amp;nbsp; &amp;nbsp; width=&quot;1280&quot;
&amp;nbsp; &amp;nbsp; height=&quot;873&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; src=&quot;/img/elephant.jpg&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;Picture of an elephant&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
La animación en sí misma simplemente mueve la imagen a través de &quot;transform&quot;: &quot;translateY(-30%)&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;parallaxTransition&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;direction&quot;: &quot;reverse&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;#parallaxImage&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateY(-30%)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4862114807300964538'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4862114807300964538'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/como-agregar-un-parallax-en-amp-html.html' title='¿Cómo agregar un Parallax en AMP HTML?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB3tWQV4lDe60Ays_4zDTWpnhHGRm1ESEbUVTCgNJB7e0Jl0MjGL2M10H6eLV8hYWbAv3faUDT-se1gKvuBsvqydTUy0c_s-GQ4zt4rJtwYKe6KUi58Q60AEGh1OhdHAfrRw_LLR9Y37dS/s72-c/como-agregar-un-parallax-en-amp-html.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4225550865320182796</id><published>2018-02-04T09:28:00.002-08:00</published><updated>2018-02-04T09:45:45.425-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><title type='text'>Transiciones de desvanecimiento y deslizamiento en AMP HTML</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK9n-WJBaRQnzu2mMZRA4OTyMqxvqKb2L4wrcRffTu1KvjznSgShf8oXEoLIt15u2Up-ISUWmV1wNEkxPU_d4Xf-_VUHffyPMkxQirjnRUA2W5LWj7FWE8LFCLKQ_NZ0rkwH7vgI0qeZkd/s1600/transiciones-de-desvanecimiento-y-deslizamiento-en-amp.jpg&quot; width=&quot;482&quot; height=&quot;385&quot; alt=&quot;Transiciones de desvanecimiento y deslizamiento en AMP HTML&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Aprenda a insertar una imagen con un título o descripción deslizante, el mismo puede desplazarse desde la izquierda hacia la derecha y viceversa, todo ello utilizando las técnicas de AMP HTML.&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;large&quot;&gt;Primero deberá insertar los siguientes scripts&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Inserte la extencion amp-position-observer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-position-observer&quot; src=&quot;https://cdn.ampproject.org/v0/amp-position-observer-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Importe la extencion amp-animation&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora agregue el script amp-fit-text&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-fit-text&quot; src=&quot;https://cdn.ampproject.org/v0/amp-fit-text-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El CSS utilizado para este ejemplo se incluye aquí como referencia.&lt;br /&gt;
&lt;br /&gt;
Estas reglas son simplemente necesarias para que las muestras funcionen, pero no son fundamentales para los conceptos que se tratan aquí.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;style amp-custom&amp;gt;

.card {
    margin: 10%;
    position: relative;
  }
  .card-title {
    padding: 5%;
    padding-right: 40%;
    font-size: 50%;
    font-weight: bold;
    color: #FAFAFA;
    transform: translateX(-100%);
  }

&amp;lt;/style&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora que hemos aprendido los conceptos centrales básicos detrás de &lt;b&gt;amp-position-observer&lt;/b&gt; y &lt;b&gt;amp-animation&lt;/b&gt;, profundicemos en formas más creativas de combinarlos para crear transiciones interesantes.&lt;br /&gt;
&lt;br /&gt;
En esta muestra, combinaremos las transiciones timebound y scrollbound juntas para crear un efecto donde la opacidad de la tarjeta esté vinculada a la cantidad de ella visible en la ventana gráfica (scrollbound) y el título de la tarjeta animada in/out (timebound) a medida que la tarjeta ingresa y sale de la ventana gráfica.&lt;br /&gt;
&lt;br /&gt;
Nuestra escena de cartas está compuesta simplemente por una imagen y un título superpuesto. Aquí definimos dos observadores de posición con diferentes valores de relación de intersección:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
- El primero controlará la opacidad de la imagen a medida que el usuario se desplaza.&lt;br /&gt;
&lt;br /&gt;
- El segundo ejecutará una animación de diapositivas de tiempo para el título cuando la escena se vuelva más visible (80%) y la vuelva a ejecutar &quot;en reversa&quot; cuando la escena salga un poco de la ventana gráfica (20%).&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;card ampstart-card&quot;&gt;

  &lt;amp-position-observer on=&quot;scroll:fadeTransition.seekTo(percent=event.percent)&quot;
    intersection-ratios=&quot;0&quot;
    layout=&quot;nodisplay&quot;&gt;
  &lt;/amp-position-observer&gt;

  &lt;amp-position-observer on=&quot;enter:slideTransition.start; exit:slideTransition.start,slideTransition.reverse&quot;
    intersection-ratios=&quot;0.8&quot;
    layout=&quot;nodisplay&quot;&gt;
  &lt;/amp-position-observer&gt;

  &lt;amp-fit-text layout=&quot;fill&quot;&gt;
    &lt;div class=&quot;card-title&quot;&gt;
      AMP (Accelerated Mobile Pages) es una iniciativa de código abierto promovida por Google!
    &lt;/div&gt;
  &lt;/amp-fit-text&gt;

  &lt;amp-img id=&quot;cardImage&quot;
    width=&quot;1600&quot;
    height=&quot;1083&quot;
    layout=&quot;responsive&quot;
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgna6DREWTHFutz3mV-I3UyFo5NcNal54Z-614hcbYofnm6VXhYP6F1HMiLoFJhCif58Cd0HsfPSkaBVksC6CcnObCUCPPVQ3ILN2qcoy0RkfXDnOewkao9HZp7qDFKNqpgRq8FqKegeQ9l/s1600/amp-html.jpg&quot;
    alt=&quot;AMP (Accelerated Mobile Pages) es una iniciativa de código abierto promovida por Google&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;

&lt;amp-animation id=&quot;fadeTransition&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;duration&quot;: &quot;1&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;direction&quot;: &quot;reverse&quot;,
      &quot;animations&quot;: [{
        &quot;selector&quot;: &quot;#cardImage&quot;,
        &quot;keyframes&quot;: [{
            &quot;opacity&quot;: &quot;0.3&quot;,
            &quot;offset&quot;: 0
          },
          {
            &quot;opacity&quot;: &quot;1&quot;,
            &quot;offset&quot;: 0.4
          },
          {
            &quot;opacity&quot;: &quot;1&quot;,
            &quot;offset&quot;: 0.6
          },
          {
            &quot;opacity&quot;: &quot;0.3&quot;,
            &quot;offset&quot;: 1
          }
        ]
      }]
    }
  &lt;/script&gt;
&lt;/amp-animation&gt;

&lt;amp-animation id=&quot;slideTransition&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;duration&quot;: &quot;500ms&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;easing&quot;: &quot;ease-out&quot;,
      &quot;iterations&quot;: &quot;1&quot;,
      &quot;animations&quot;: [{
        &quot;selector&quot;: &quot;.card-title&quot;,
        &quot;keyframes&quot;: [{
            &quot;transform&quot;: &quot;translateX(-100%)&quot;
          },
          {
            &quot;transform&quot;: &quot;translateX(0)&quot;
          }
        ]
      }]
    }
  &lt;/script&gt;
&lt;/amp-animation&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;card ampstart-card&quot;&amp;gt;

&amp;nbsp; &amp;lt;amp-position-observer on=&quot;scroll:fadeTransition.seekTo(percent=event.percent)&quot;
&amp;nbsp; &amp;nbsp; intersection-ratios=&quot;0&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;

&amp;nbsp; &amp;lt;amp-position-observer on=&quot;enter:slideTransition.start; exit:slideTransition.start,slideTransition.reverse&quot;
&amp;nbsp; &amp;nbsp; intersection-ratios=&quot;0.8&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;

&amp;nbsp; &amp;lt;amp-fit-text layout=&quot;fill&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;card-title&quot;&amp;gt;
&amp;nbsp;  &amp;nbsp; Organic, fresh tomatos and pasta!
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/amp-fit-text&amp;gt;

&amp;nbsp; &amp;lt;amp-img id=&quot;cardImage&quot;
&amp;nbsp; &amp;nbsp; width=&quot;1280&quot;
&amp;nbsp; &amp;nbsp; height=&quot;898&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; src=&quot;/img/food.jpg&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;Picture of food table.&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Definamos los fotogramas clave para la transición de entrada/salida de desvanecimiento en espiral.&lt;br /&gt;
&lt;br /&gt;
Nos dirigimos a #cardImage y definimos keyframes de forma tal que la imagen gana opacidad completa dentro del primer 40% de la línea de tiempo y comienza a desvanecerse en el último 40% de la línea de tiempo.&lt;br /&gt;
&lt;br /&gt;
Tenga en cuenta que dado que el observador de posición que controla esta animación tiene una relación de intersección establecida en 0, pasamos por la línea de tiempo completa cuando el usuario despliega la cantidad de píxeles de ViewportHeight + 2 * SceneHeight.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;fadeTransition&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;direction&quot;: &quot;reverse&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;#cardImage&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;0.3&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 0
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 0.4
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 0.6
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;opacity&quot;: &quot;0.3&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Para el efecto de deslizamiento hacia adentro/hacia afuera del título, solo definimos una animación de 500ms que moverá el título a lo largo del eje X.&lt;br /&gt;
&lt;br /&gt;
Esta animación simplemente se activará (en direcciones normales o inversas) a través del observador de la segunda posición cuando la escena sea mayormente visible/invisible.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;slideTransition&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;500ms&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;easing&quot;: &quot;ease-out&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;iterations&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;.card-title&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateX(-100%)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateX(0)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4225550865320182796'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4225550865320182796'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/transiciones-de-desvanecimiento-y-deslizamiento-en-amp.html' title='Transiciones de desvanecimiento y deslizamiento en AMP HTML'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK9n-WJBaRQnzu2mMZRA4OTyMqxvqKb2L4wrcRffTu1KvjznSgShf8oXEoLIt15u2Up-ISUWmV1wNEkxPU_d4Xf-_VUHffyPMkxQirjnRUA2W5LWj7FWE8LFCLKQ_NZ0rkwH7vgI0qeZkd/s72-c/transiciones-de-desvanecimiento-y-deslizamiento-en-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-7763953145320041240</id><published>2018-02-03T15:04:00.000-08:00</published><updated>2018-02-03T15:08:54.522-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><title type='text'>¿Cómo insertar animaciones Scrollbound en AMP HTML?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5R1aNnYcwBQGqx4sd-5LFVAkeJyCpw8yX3EWX1CI-TOPnwXFfuVYD7CHpxIdMal9DON7KLVhXtL-cFEJqrZpfyWIXqliN6_jUGvgVpnpyDOR2yo0L7nhuQes6HsVGjNXod7OjHbHei6VT/s1600/como-insertar-animaciones-scrollbound-en-amp-html.jpg&quot; width=&quot;439&quot; height=&quot;310&quot; alt=&quot;¿Cómo insertar animaciones Scrollbound en AMP HTML?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Fácil y seguro podrá agregar animaciones Scrollbound en el formato AMP HTML, a continuación las siguientes instrucciones&lt;br /&gt;
&lt;br /&gt;
Inserte la extencion amp-position-observer&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-position-observer&quot; src=&quot;https://cdn.ampproject.org/v0/amp-position-observer-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Importe la extencion amp-animation&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El CSS utilizado para este ejemplo se incluye aquí como referencia.&lt;br /&gt;
&lt;br /&gt;
Estas reglas son simplemente necesarias para que las muestras funcionen, pero no son fundamentales para los conceptos que se tratan aquí.&lt;br /&gt;
&lt;br /&gt;

&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;style amp-custom&amp;gt;&lt;br /&gt;

&amp;nbsp; /* * Fidget Spinner styles */
&amp;nbsp; .fidget-spinner-scene {
&amp;nbsp; &amp;nbsp; margin: 10px 20%;
&amp;nbsp; }

&amp;lt;/style&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Vamos a crear una rueda giratoria que gira a medida que el usuario se desplaza por la página.&lt;br /&gt;
&lt;br /&gt;
Esta muestra el concepto central detrás de la combinación de amp-position-observer y amp-animation: la capacidad de avanzar a través de una línea de tiempo de animación de cuadro clave a medida que un elemento avanza a través de la ventana gráfica mediante el desplazamiento.&lt;br /&gt;
&lt;br /&gt;
Nuestra escena fidget spinner es un div con una imagen. Agregamos un elemento amp-position-observer como elemento secundario de la escena para monitorear su progreso a través de la ventana gráfica. Echemos un vistazo a los detalles:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;on:scroll:&lt;/b&gt; este evento es activado por el observador de posición ya que la posición de la escena cambia cuando el usuario se desplaza. El evento proporciona un valor porcentual (decimal entre 0 y 1) que representa qué tan lejos está la escena entre el inicio y el final de su progreso a través de la ventana gráfica.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;spinAnimation.seekTo(percent=event.percent):&lt;/b&gt; Definiremos amp-animation que hará el spinning en el siguiente paso, aquí estamos acoplando amp-position-observer y amp-animation activando una acción seekTo en la animación como eventos de desplazamiento. Así es como especificamos que nos gusta avanzar a través de la línea de tiempo de la animación a medida que la escena avanza a través de la ventana gráfica mediante el desplazamiento.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;intersection-ratios:&lt;/b&gt; Define qué parte de la escena debe ser visible en la ventana gráfica antes de que amp-position-observer active cualquiera de sus eventos. Aquí, nos gusta que el spinning suceda solo cuando fidget spinner esté completamente visible, así que lo configuramos en 1.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;div class=&quot;fidget-spinner-scene&quot;&gt;

  &lt;amp-position-observer on=&quot;scroll:spinAnimation.seekTo(percent=event.percent)&quot;
    intersection-ratios=&quot;1&quot;
    layout=&quot;nodisplay&quot;&gt;
  &lt;/amp-position-observer&gt;

  &lt;amp-img id=&quot;fidgetSpinnerImage&quot;
    width=&quot;1024&quot;
    height=&quot;1114&quot;
    layout=&quot;responsive&quot;
    src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUHDeDpF0cl6rs-x3dc6LmOfAdmt66P8ifpXREvzMiPadfgjRasDq5QQBowvUK7MW4N9RgPq_YWtbVbNwTqJvRT-kYHfHi4YTnr-m0eWrYrpM5FwYO1l5d6uArkPT3bTEOpuL9mjef8wMl/s320/fidget-amp.png&quot;
    alt=&quot;Picture of a fidget spinner&quot;&gt;&lt;/amp-img&gt;
&lt;/div&gt;

&lt;amp-animation id=&quot;spinAnimation&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    {
      &quot;duration&quot;: &quot;1&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;direction&quot;: &quot;reverse&quot;,
      &quot;animations&quot;: [{
        &quot;selector&quot;: &quot;#fidgetSpinnerImage&quot;,
        &quot;keyframes&quot;: [{
          &quot;transform&quot;: &quot;rotate(360deg)&quot;
        }]
      }]
    }
  &lt;/script&gt;
&lt;/amp-animation&gt;

&lt;/div&gt;
&amp;lt;div class=&quot;fidget-spinner-scene&quot;&amp;gt;

&amp;nbsp; &amp;lt;amp-position-observer on=&quot;scroll:spinAnimation.seekTo(percent=event.percent)&quot;
&amp;nbsp; &amp;nbsp; intersection-ratios=&quot;1&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;/amp-position-observer&amp;gt;

&amp;nbsp; &amp;lt;amp-img id=&quot;fidgetSpinnerImage&quot;
&amp;nbsp; &amp;nbsp; width=&quot;1024&quot;
&amp;nbsp; &amp;nbsp; height=&quot;1114&quot;
&amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUHDeDpF0cl6rs-x3dc6LmOfAdmt66P8ifpXREvzMiPadfgjRasDq5QQBowvUK7MW4N9RgPq_YWtbVbNwTqJvRT-kYHfHi4YTnr-m0eWrYrpM5FwYO1l5d6uArkPT3bTEOpuL9mjef8wMl/s320/fidget-amp.png&quot;
&amp;nbsp; &amp;nbsp; alt=&quot;Picture of a fidget spinner&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Ahora tenemos que definir la animación en sí misma:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Bastante sencillo en este caso, queremos que fidgetSpinnerImage gire 360 ​​grados, por lo que solo definimos una &quot;transform&quot;: &quot;rotate(360deg)&quot; como el último (y único) fotograma clave. Echemos un vistazo a los detalles:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;id=&quot;spinAnimation&quot;:&lt;/b&gt; Necesitamos darle a la animación un Id para que podamos referenciarlo desde el observador de la posición.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;duration&quot;: &quot;1&quot;:&lt;/b&gt; el valor de la duración es irrelevante en este caso, ya que avanzamos a través de la línea de tiempo mediante el desplazamiento, así que simplemente lo configuramos en 1&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;direction&quot;: &quot;reverse&quot;: &lt;/b&gt;esto es necesario debido a un error de iOS con Web Animations.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;animations&quot;:&lt;/b&gt; aquí podemos definir una o más animaciones basadas en fotogramas clave. En nuestro caso, solo necesitamos uno.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;selector&quot;:&lt;/b&gt; &quot;#fidgetSpinnerImage&quot; es el selector que se dirige al agitador fidget para la animación.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&quot;keyframes&quot;:&lt;/b&gt; definimos una &quot;transform&quot;: &quot;rotate(360deg)&quot; como el último (y único) fotograma clave. Tenga en cuenta que la amp-animation llena automáticamente el primer fotograma clave si no se proporciona.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;spinAnimation&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;direction&quot;: &quot;reverse&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;animations&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;#fidgetSpinnerImage&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;rotate(360deg)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; &amp;nbsp; }]
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7763953145320041240'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/7763953145320041240'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/como-insertar-animaciones-scrollbound-en-amp-html.html' title='¿Cómo insertar animaciones Scrollbound en AMP HTML?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5R1aNnYcwBQGqx4sd-5LFVAkeJyCpw8yX3EWX1CI-TOPnwXFfuVYD7CHpxIdMal9DON7KLVhXtL-cFEJqrZpfyWIXqliN6_jUGvgVpnpyDOR2yo0L7nhuQes6HsVGjNXod7OjHbHei6VT/s72-c/como-insertar-animaciones-scrollbound-en-amp-html.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4534586311206983099</id><published>2018-02-03T14:10:00.002-08:00</published><updated>2018-06-07T08:00:18.266-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Efectos visuales"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo crear un Snackbar animado en AMP HTML?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5gVfA2QCrUhRtcU9CbwwXaVzoQA0NWuIIpvx_5Yi3AybxSN8FHrI9_Do3s81QfEvMd9PKc7JUqlo2fDFvctRSn-UQ7OrEHzBgqbKcXTKvNoPQQ6pui8hcZNCGt_dU9vS6NOiLSI3ugAg-/s1600/como-crear-un-snackbar-animado-en-amp-html.jpg&quot; width=&quot;439&quot; height=&quot;306&quot; alt=&quot;¿Cómo crear un Snackbar animado en AMP HTML?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Snackbars animados proporcionan comentarios breves sobre una operación a través de un mensaje en la parte inferior de la pantalla.&lt;br /&gt;
&lt;br /&gt;
Tendrá que uar amp-bind para activar la Snackbar&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-bind&quot; src=&quot;https://cdn.ampproject.org/v0/amp-bind-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
y amp-animation para mostrar y ocultar la Snackbar.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-animation&quot; src=&quot;https://cdn.ampproject.org/v0/amp-animation-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;La animación&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Queremos mostrar un snackbar que desaparece después de unos segundos. Esto podría lograrse fácilmente agregando una clase de CSS usando amp-bind para mostrar la barra de Snackbar&amp;nbsp;y luego usar animaciones CSS para ocultar la barra Snackbar&amp;nbsp;después de unos segundos. Sin embargo, con este enfoque no es posible disparar el Snackbar&amp;nbsp;varias veces (la clase CSS recién agregada no desaparece).&lt;br /&gt;
&lt;br /&gt;
Podemos resolver este problema utilizando la extensión amp-animation, permite ejecutar animaciones repetidamente. Definimos una animación que se deslizará en la barra de snack y luego la esconderá después de unos segundos utilizando el atributo de desplazamiento para sincronizar los diferentes fotogramas clave.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;amp-animation id=&quot;snackbarSlideIn&quot;
&amp;nbsp; layout=&quot;nodisplay&quot;&amp;gt;
&amp;nbsp; &amp;lt;script type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;duration&quot;: &quot;3s&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;fill&quot;: &quot;both&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;easing&quot;: &quot;ease-out&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;iterations&quot;: &quot;1&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;selector&quot;: &quot;.snackbar&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;keyframes&quot;: [{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateY(100%)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateY(0)&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 0.1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateY(0)&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;offset&quot;: 0.9
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;transform&quot;: &quot;translateY(100%)&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; ]
&amp;nbsp; &amp;nbsp; }]
&amp;lt;/script&amp;gt;
&amp;lt;/amp-animation&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;El Snackbar&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El snackbar es un div que contiene el mensaje. Desaparecerá después de unos segundos, por lo que no proporcionaremos botones adicionales para ocultar manualmente la barra. El mensaje de texto está vinculado a una variable amp-state para que su contenido sea configurable. Esto no es necesario si siempre debe mostrar el mismo mensaje.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;div class=&quot;snackbar&quot;
&amp;nbsp; [text]=&quot;message&quot;&amp;gt;
&amp;nbsp; Hello World
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;The Trigger&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La animación de la barra de snacks se activa a través de la acción de reinicio &quot;restart&quot;: on=&quot;tap:snackbarSlideIn.restart&quot;. Usamos la acción de reinicio para posibilitar la anulación de una animación ya activa. El campo de entrada simplemente actualiza la variable amp-state que contiene el mensaje de la barra.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-animation id=&quot;snackbarSlideIn&quot;
  layout=&quot;nodisplay&quot;&gt;
  &lt;script type=&quot;application/json&quot;&gt;
    [{
      &quot;duration&quot;: &quot;3s&quot;,
      &quot;fill&quot;: &quot;both&quot;,
      &quot;easing&quot;: &quot;ease-out&quot;,
      &quot;iterations&quot;: &quot;1&quot;,
      &quot;selector&quot;: &quot;.snackbar&quot;,
      &quot;keyframes&quot;: [{
          &quot;transform&quot;: &quot;translateY(100%)&quot;
        },
        {
          &quot;transform&quot;: &quot;translateY(0)&quot;,
          &quot;offset&quot;: 0.1
        },
        {
          &quot;transform&quot;: &quot;translateY(0)&quot;,
          &quot;offset&quot;: 0.9
        },

        {
          &quot;transform&quot;: &quot;translateY(100%)&quot;
        }
      ]
    }]
  &lt;/script&gt;
&lt;/amp-animation&gt;
&lt;div class=&quot;snackbar&quot;
  [text]=&quot;message&quot;&gt;
  Hello World
&lt;/div&gt;
&lt;div class=&quot;trigger&quot;&gt;
  &lt;input on=&quot;input-debounced:AMP.setState({message: event.value})&quot;
    value=&quot;Hello World&quot;&gt;
  &lt;button on=&quot;tap:snackbarSlideIn.restart&quot;&gt;
    Show Snackbar
  &lt;/button&gt;
&lt;/div&gt;

&lt;/div&gt;

&amp;lt;div class=&quot;trigger&quot;&amp;gt;
&amp;nbsp; &amp;lt;input on=&quot;input-debounced:AMP.setState({message: event.value})&quot;
&amp;nbsp; &amp;nbsp; value=&quot;Hello World&quot;&amp;gt;
&amp;nbsp; &amp;lt;button on=&quot;tap:snackbarSlideIn.restart&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; Show Snackbar
&amp;nbsp; &amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4534586311206983099'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4534586311206983099'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/02/como-crear-un-snackbar-animado-en-amp-html.html' title='¿Cómo crear un Snackbar animado en AMP HTML?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5gVfA2QCrUhRtcU9CbwwXaVzoQA0NWuIIpvx_5Yi3AybxSN8FHrI9_Do3s81QfEvMd9PKc7JUqlo2fDFvctRSn-UQ7OrEHzBgqbKcXTKvNoPQQ6pui8hcZNCGt_dU9vS6NOiLSI3ugAg-/s72-c/como-crear-un-snackbar-animado-en-amp-html.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4962185292445328735</id><published>2018-01-15T18:31:00.001-08:00</published><updated>2018-06-07T08:00:18.276-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp en Espanol"/><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo agregar una URL a una imagen con AMP?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5nseQDhSDFkxYmegQn2cGrw_sAjDBEtarYwR72s6_Pj6B-RfyTSfC3xutNHzE4g0ldp9Sg-zwr3whsAcmo-QpNVTPIq8vDVpOfyxJ5fokkIh4LfSj6fFuDW3Bc2G41VDbqjBcLzio6J_a/s1600/como-crear-una-imagen-con-un-link-en-amp-html.jpg&quot; width=&quot;606&quot; height=&quot;410&quot; alt=&quot;¿Cómo agregar una URL a una imagen con AMP?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Con frecuencia se utilizan imágenes con enlaces dirigidas a otras publicaciones, por lo general es fácil de realizarlo en el formato AMP HTML.&lt;br /&gt;
&lt;br /&gt;
Es tan simple como usar la imagen como contenido del enlace&lt;br /&gt;
&lt;br /&gt;
A continuación el Ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;

&lt;a href=&quot;https://www.amphtmlenespanol.com/2017/08/insertar-videos-de-vine-en-amp-html.html&quot; target=&quot;_blank&quot;&gt;
&lt;amp-img alt=&quot;AQUÍ UNA DESCRIPCION DE LA IMAGEN&quot; height=&quot;427&quot; layout=&quot;responsive&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiipQGAUNHjTQ5CTc4-LvvbwtyWloGZviDnVHMGkYRI2Cg0Yj5PO11ar-2duDYx3KGd_0HiQQYiDrzEcp2JM_O4q0KBX3GK6i6rI26h1wLmrUkfGy8ghSxRTWUPKnEMAtJDF8P5de2BAt7m/s1600/como-crear-una-imagen-con-un-link-en-amp-html.jpg&quot; width=&quot;635&quot;&gt;&lt;/amp-img&gt;&lt;/a&gt;

&lt;/div&gt;

&amp;lt;a href=&quot;INGRESE AQUÍ LA DIRECCIÓN URL DE LA PAGINA POST ETC&quot; target=&quot;_blank&quot;&amp;gt;
&amp;lt;amp-img alt=&quot;AQUÍ UNA DESCRIPCION DE LA IMAGEN&quot; height=&quot;320&quot; layout=&quot;responsive&quot; src=&quot;INGRESE AQUÍ LA DIRECCIÓN URL DE SU IMAGEN&quot; width=&quot;500&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;&amp;lt;/a&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;
&lt;b class=&quot;p-large&quot;&gt;Instructivo&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
   width=&quot;500&quot;   Es su altura  &lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div class=&quot;col col-6&quot;&gt;
&lt;div class=&quot;box-material-big&quot;&gt;
&lt;div class=&quot;box-material-small b-m-color&quot;&gt;
&lt;h2 class=&quot;box-m-s-txt&quot;&gt;
   height=&quot;320&quot;  Es su anchura  &lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;


&lt;br/&gt;
&lt;span class=&quot;color-cafe&quot;&gt;¡Fácil verdad!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Cualquier pregunta no duden en escribir&lt;br /&gt;
&lt;br /&gt;

</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4962185292445328735'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4962185292445328735'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/01/como-crear-una-imagen-con-un-link-en-amp-html.html' title='¿Cómo agregar una URL a una imagen con AMP?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5nseQDhSDFkxYmegQn2cGrw_sAjDBEtarYwR72s6_Pj6B-RfyTSfC3xutNHzE4g0ldp9Sg-zwr3whsAcmo-QpNVTPIq8vDVpOfyxJ5fokkIh4LfSj6fFuDW3Bc2G41VDbqjBcLzio6J_a/s72-c/como-crear-una-imagen-con-un-link-en-amp-html.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-3193581308593668023</id><published>2018-01-09T13:23:00.003-08:00</published><updated>2018-01-09T13:23:36.774-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp en Espanol"/><title type='text'>Mejora de URL para páginas AMP</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgXOGF2pwr5IeaJC_9jOUqqrORANLNCCNsVeL2rdUcuNV8ZKk7NZVI9xBV2k8jySAZGw1ugJAqQlC440cAzKVR-peDASTr1Vx2QyQUeIaO1qRZ1U1AgqeSb4SJPsjk48wgwFN7QM1ddZu9/s1600/mejora-de-url-para-paginas-amp.jpg&quot; width=&quot;698&quot; height=&quot;411&quot; alt=&quot;Mejora de URL para páginas AMP&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
Estamos haciendo cambios en cómo funciona AMP en plataformas como la Búsqueda de Google que permitirá que las páginas enlazadas aparezcan en las URL de los editores en lugar del espacio URL de google.com/amp mientras se mantienen los beneficios de rendimiento y privacidad de la memoria caché de AMP. .&lt;br /&gt;

&lt;br /&gt;
Cuando lanzamos AMP en la Búsqueda de Google, hicimos una gran compensación: para lograr la experiencia del usuario que los usuarios nos decían que querían, carga instantánea, necesitábamos comenzar a cargar la página antes de que el usuario hiciera clic. Como detallamos en una publicación de &lt;a href=&quot;https://developers.googleblog.com/2017/02/whats-in-amp-url.html&quot; target=&quot;_blank&quot;&gt;blog&lt;/a&gt; profunda el año pasado, las razones de privacidad hacen que sea básicamente imposible cargar la página desde el servidor del editor. Los editores no deberían saber qué les interesa a las personas hasta que accedan activamente a sus páginas. En cambio, las páginas de AMP se cargan desde Google AMP Cache, pero con ese comportamiento las URL se cambiaron para incluir el prefijo de la URL google.com/amp/.&lt;br /&gt;
&lt;br /&gt;
Somos grandes admiradores de URL significativas y reconocemos que esto no es ideal. Muchos de ustedes están de acuerdo. Sin duda es la pieza número 1 de comentarios que escuchamos sobre AMP. Intentamos asegurarnos de que estas URL aparezcan en el menor número de lugares posible. Con el tiempo, nuestras aplicaciones nativas de Búsqueda de Google en Android e iOS comenzaron a mostrar de manera predeterminada las URL de los editores y trabajamos con los proveedores de los navegadores para compartir la URL del editor de un artículo siempre que fuera posible. Sin embargo, no pudimos corregir el estado de las URL donde más importa: en la web y en la barra de URL del navegador.&lt;br /&gt;
&lt;br /&gt;
Nos embarcamos en un esfuerzo prolongado de varios meses, y hoy por fin confiamos en que encontramos una solución: como recomienda el &lt;a href=&quot;https://www.w3.org/2001/tag/doc/distributed-content/&quot; target=&quot;_blank&quot;&gt;W3C TAG&lt;/a&gt;, tenemos la intención de implementar una nueva versión de AMP Cache basada en el &lt;a href=&quot;https://github.com/WICG/webpackage&quot; target=&quot;_blank&quot;&gt;estándar&lt;/a&gt; emergente de &lt;a href=&quot;https://github.com/WICG/webpackage&quot; target=&quot;_blank&quot;&gt;Web Packaging&lt;/a&gt;.. Basado en este estándar web, las navegaciones de AMP de la Búsqueda de Google pueden aprovechar la precarga y el rendimiento de los servidores de Google, mientras que las URL permanecen como pretendía el editor y el contexto de seguridad principal de la web, el origen, permanece intacto. Hemos creado un prototipo basado en el navegador Chrome y una versión experimental de la Búsqueda de Google para asegurarnos de que realmente ofrece tanto el UX deseado como el rendimiento en casos de uso real. Este paso nos da la confianza de que tenemos una solución prometedora para este problema difícil y que pronto se convertirá en la forma en que los usuarios se encontrarán con el contenido de AMP en la web.&lt;br /&gt;
&lt;br /&gt;
Los siguientes pasos se están moviendo hacia la implementación completa del nuevo estándar web en los navegadores web y en Google AMP Cache. Nuestro objetivo es que Web Packaging esté disponible en tantos navegadores como sea posible (después de todo, Web Packaging tiene casos de uso interesantes más allá de AMP, como páginas fuera de línea, carga de módulo ES6 y agrupación de recursos). En particular, pretendemos ampliar el trabajo existente en &lt;a href=&quot;http://frederic-wang.fr/amp-and-igalia-working-together-to-improve-the-web-platform.html&quot; target=&quot;_blank&quot;&gt;WebKit&lt;/a&gt; para incluir la implementación de Web Packaging y la implementación del equipo de Google Chrome está comenzando.&lt;br /&gt;
&lt;br /&gt;
Estamos muy entusiasmados con la puesta en marcha de este trabajo y esperamos que los cambios lleguen a los usuarios por primera vez en la segunda mitad de 2018. Gracias por todos sus comentarios sobre el asunto y los mantendremos informados sobre el progreso aquí en este ¡Blog!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://twitter.com/cramforce&quot; target=&quot;_blank&quot;&gt;Malte Ubl&lt;/a&gt; , Tech Lead para el Proyecto AMP en Google.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Este artículo fue tomado del siguiente enlace:&lt;/b&gt;&amp;nbsp;&lt;a href=&quot;https://www.ampproject.org/latest/blog/improving-urls-for-amp-pages/&quot; target=&quot;_blank&quot;&gt;https://www.ampproject.org/latest/blog/improving-urls-for-amp-pages/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3193581308593668023'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3193581308593668023'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2018/01/mejora-de-url-para-paginas-amp.html' title='Mejora de URL para páginas AMP'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgXOGF2pwr5IeaJC_9jOUqqrORANLNCCNsVeL2rdUcuNV8ZKk7NZVI9xBV2k8jySAZGw1ugJAqQlC440cAzKVR-peDASTr1Vx2QyQUeIaO1qRZ1U1AgqeSb4SJPsjk48wgwFN7QM1ddZu9/s72-c/mejora-de-url-para-paginas-amp.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-3350479437985554360</id><published>2017-08-26T19:08:00.001-07:00</published><updated>2018-06-07T08:00:18.259-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp en Espanol"/><category scheme="http://www.blogger.com/atom/ns#" term="AMP Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial AMP"/><title type='text'>¿Cómo insertar videos de Vine en Amp HTML?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijohPA0ouVjj-D-ZTWEVvRKs9dHmKqSQRVQ0JZlAeKEY2jODPzt1oBxe0dSknzaejyeWBAkXa4e7V0qmugCdLzo88DaoFeqGZ0-x3nDSoYVmDSC35IJlz-Mzqa7jWtIKwWpYjYXSfvYfPF/s1600/Amp-en-Espanol-Como-insertar-videos-de-Vine-en-Amp-HTML.jpg&quot; width=&quot;584&quot; height=&quot;359&quot; alt=&quot;Amp en Español - ¿Cómo insertar videos de Vine en Amp HTML?&quot;/&gt;&lt;/noscript&gt;
De una forma fácil y segura podrá implementar los videos de Vine en el formato Amp HTML. Básicamente con la ayuda de unos simples códigos se puede insertar fácilmente los videos de Vine en su sitio web bajo el formato de Amp HTML.&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;color-verde&quot;&gt;Puede ver el ejemplo en la siguiente página&lt;/b&gt;&lt;br /&gt;
&lt;div id=&quot;ayudadeblogger&quot;&gt;
&lt;a class=&quot;adb-slide&quot; href=&quot;http://www.ayudadeblogger.com/&quot; target=&quot;_blank&quot;&gt;
  &lt;span class=&quot;circle&quot;&gt;&lt;i class=&quot;fa fa-laptop&quot;&gt;&lt;/i&gt;&lt;/span&gt;
  &lt;span class=&quot;title&quot;&gt;Demo&lt;/span&gt;
  &lt;span class=&quot;title-hover&quot;&gt;Clic aquí&lt;/span&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;center&gt;
&lt;b class=&quot;large&quot;&gt;Video tutorial&lt;/b&gt;&lt;br /&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;p-large&quot;&gt;Empezamos&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Inserte el siguiente script justo después de la apertura &lt;b&gt;&amp;lt;head&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;script async custom-element=&quot;amp-vine&quot; src=&quot;https://cdn.ampproject.org/v0/amp-vine-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Ahora inserte el siguiente código donde quiera dar a conocer el video&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;amp-vine width=&quot;400&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;400&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; data-vineid=&quot;&lt;b class=&quot;fondo-amarillo&quot;&gt;MdKjXez002d&lt;/b&gt;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/amp-vine&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Realice el siguiente cambio:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Elimine el código ID que está marcado de color amarillo, remplácelo por el Id del video de Vine&lt;br /&gt;
&lt;br /&gt;
&lt;b class=&quot;p-large&quot;&gt;Código video de Vine responsive&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;amp-example&quot;&gt;
&lt;h3&gt;Ejemplo&lt;/h3&gt;
&lt;div class=&quot;amp-code&quot;&gt;
&amp;lt;amp-vine width=&quot;1&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;1&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; layout=responsive&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; data-vineid=&quot;&lt;b class=&quot;fondo-amarillo&quot;&gt;MdKjXez002d&lt;/b&gt;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/amp-vine&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Eso es todo&lt;br /&gt;
&lt;br /&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3350479437985554360'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/3350479437985554360'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2017/08/insertar-videos-de-vine-en-amp-html.html' title='¿Cómo insertar videos de Vine en Amp HTML?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijohPA0ouVjj-D-ZTWEVvRKs9dHmKqSQRVQ0JZlAeKEY2jODPzt1oBxe0dSknzaejyeWBAkXa4e7V0qmugCdLzo88DaoFeqGZ0-x3nDSoYVmDSC35IJlz-Mzqa7jWtIKwWpYjYXSfvYfPF/s72-c/Amp-en-Espanol-Como-insertar-videos-de-Vine-en-Amp-HTML.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-6434131496235152939</id><published>2017-05-27T13:02:00.003-07:00</published><updated>2017-05-27T13:06:23.119-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML en espanol"/><title type='text'>Instrucciones amp-access</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1NS7F3tAra0FZ7nBCREJr4DfVtI9cA2z_Ecxbef8E02J57tNyYGMoLzSyhRXoBix6x5-tSK0QSTse7hV9ymvV8Pgb8Kn2mXaFxBuJrX9iJGPRCInWhNYk-AUwgVXNiMh9fM3BbisAGjQn/s1600/agregar-amp-access.png&quot; width=&quot;600&quot; height=&quot;350&quot; alt=&quot;Instrucciones amp-access&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;h2&gt;
&lt;b&gt;amp-access&lt;/b&gt;&lt;/h2&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;div class=&quot;adb-justificar&quot;&gt;
El componente amp-access agrega soporte para los paywalls y suscripciones a AMP, permitiendo al editor controlar qué contenido es accesible por el lector y con qué restricciones.&lt;br /&gt;
&lt;br /&gt;
Para los puntos finales del servidor amp-access, consulte el proyecto &lt;a href=&quot;https://github.com/ampproject/amp-publisher-sample&quot; target=&quot;_blank&quot;&gt;amp-publisher-sample&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Agregar&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Importe el componente amp-access justo después de la apertura &amp;lt;head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-access&quot; src=&quot;https://cdn.ampproject.org/v0/amp-access-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
amp-access requiere del componente amp-analytics&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-analytics&quot; src=&quot;https://cdn.ampproject.org/v0/amp-analytics-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Opcionalmente, utilice el componente amp-mustache para mostrar texto con los valores reemplazados de la respuesta de autorización&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-template=&quot;amp-mustache&quot; src=&quot;https://cdn.ampproject.org/v0/amp-mustache-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Agregue la configuración &lt;b&gt;authorization&lt;/b&gt;, &lt;b&gt;pingback&lt;/b&gt; y los puntos finales de login. Proporcionamos dos puntos finales de inicio de sesión, uno para iniciar sesión y otro para cerrar sesión. También es posible crear una respuesta de fallback que se utilizará si la autorización falla con el atributo &lt;b&gt;authorizationFallbackResponse&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;
&amp;lt;script id=&quot;amp-access&quot; type=&quot;application/json&quot;&amp;gt;
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;authorization&quot;: &quot;https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&amp;amp;url=CANONICAL_URL&amp;amp;ref=DOCUMENT_REFERRER&amp;amp;_=RANDOM&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;pingback&quot;: &quot;https://ampbyexample.com/components/amp-access/authorization?rid=READER_ID&amp;amp;url=CANONICAL_URL&amp;amp;ref=DOCUMENT_REFERRER&amp;amp;_=RANDOM&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;login&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;sign-in&quot;: &quot;https://ampbyexample.com/components/amp-access/login?rid=READER_ID&amp;amp;url=CANONICAL_URL&quot;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;sign-out&quot;: &quot;https://ampbyexample.com/components/amp-access/logout&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; },
&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;authorizationFallbackResponse&quot;: {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;error&quot;: true,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;access&quot;: false,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;subscriber&quot;: false
&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; }
&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Esta sección es visible para todos los usuarios. En este caso no se necesita ninguna marca especial.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section&gt;
  &lt;h3&gt;The Article&lt;/h3&gt;
  &lt;p&gt;
    This is a preview of the article.
  &lt;/p&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section&amp;gt;
&amp;nbsp; &amp;lt;h3&amp;gt;The Article&amp;lt;/h3&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;
&amp;nbsp; &amp;nbsp; This is a preview of the article.
&amp;nbsp; &amp;lt;/p&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Utilice el atributo &lt;b&gt;amp-access&lt;/b&gt; para controlar la visibilidad de cada componente. La expresión debe evaluar a un valor booleano. Si se evalúa como &lt;b&gt;TRUE&lt;/b&gt;, se mostrará la sección.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section amp-access=&quot;access&quot;&gt;
  &lt;p&gt;This section is visible to users if the authorization response contains:
    &lt;code&gt;&quot;access&quot;: true&lt;/code&gt;. This is usually the main content of the article.&lt;/p&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section amp-access=&quot;access&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;This section is visible to users if the authorization response contains:
&amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;&quot;access&quot;: true&amp;lt;/code&amp;gt;. This is usually the main content of the article.&amp;lt;/p&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Esta sección sólo se muestra si el valor del atributo de &lt;b&gt;access&lt;/b&gt; en la respuesta para las solicitudes de autorización se evalúa como &lt;b&gt;FALSE&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section amp-access=&quot;NOT access&quot;&gt;
  &lt;p&gt;This section is only visible to users if the authorization response does not contain
    &lt;code&gt;access&lt;/code&gt; or contains
    &lt;code&gt;&quot;access&quot;: false&lt;/code&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section amp-access=&quot;NOT access&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;This section is only visible to users if the authorization response does not contain
&amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;access&amp;lt;/code&amp;gt; or contains
&amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;&quot;access&quot;: false&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Es posible combinar dos valores en la expresión de evaluación. Revise los documentos para obtener más información sobre la &lt;a href=&quot;https://www.ampproject.org/docs/reference/components/amp-access#appendix-a-amp-access-expression-grammar&quot; target=&quot;_blank&quot;&gt;Gramática de Expresión&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;div amp-access=&quot;access AND NOT subscriber&quot;&gt;
  &lt;p&gt;This section is only visible to users with
    &lt;code&gt;&quot;access&quot;: true&lt;/code&gt; and
    &lt;code&gt;&quot;subscriber&quot;: false&lt;/code&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&amp;lt;div amp-access=&quot;access AND NOT subscriber&quot;&amp;gt;
&amp;nbsp; &amp;lt;p&amp;gt;This section is only visible to users with
&amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;&quot;access&quot;: true&amp;lt;/code&amp;gt; and
&amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;&quot;subscriber&quot;: false&amp;lt;/code&amp;gt;
&amp;nbsp; &amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Combine el amplificador&amp;nbsp;&lt;b&gt;amp-access&lt;/b&gt;&amp;nbsp;y amp-mustache para mostrar la información devuelta de la solicitud de autorización. En este caso mostraremos el nombre de usuario devuelto en la respuesta de autenticación.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section amp-access=&quot;subscriber&quot;&gt;
  &lt;template amp-access-template
    type=&quot;amp-mustache&quot;&gt;
    Hello {{name}}!
  &lt;/template&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section amp-access=&quot;subscriber&quot;&amp;gt;
&amp;nbsp; &amp;lt;template amp-access-template
&amp;nbsp; &amp;nbsp; type=&quot;amp-mustache&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; Hello {{name}}!
&amp;nbsp; &amp;lt;/template&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Use &lt;b&gt;on=&quot;tap:amp-access.login-sign-in&quot;&lt;/b&gt; para abrir el diálogo de inicio de sesión cuando se hace clic en el elemento.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;amp-access-hide&lt;/b&gt; predeterminará el componente que se va a ocultar y habilitará más adelante si la expresión de &lt;b&gt;amp-access&lt;/b&gt; amperio se evalúa como &lt;b&gt;TRUE&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section class=&quot;p1&quot;
  amp-access=&quot;NOT subscriber&quot;
  amp-access-hide
  role=&quot;button&quot;
  tabindex=&quot;0&quot;&gt;
  &lt;a class=&quot;ampstart-btn caps&quot;
    on=&quot;tap:amp-access.login-sign-in&quot;&gt;Login&lt;/a&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section class=&quot;p1&quot;
&amp;nbsp; amp-access=&quot;NOT subscriber&quot;
&amp;nbsp; amp-access-hide
&amp;nbsp; role=&quot;button&quot;
&amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp; &amp;lt;a class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap:amp-access.login-sign-in&quot;&amp;gt;Login&amp;lt;/a&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
El enlace de cierre de sesión sólo se mostrará para los suscriptores registrados. Utilizamos un truco aquí: el logout es una acción de inicio de sesión que redirige directamente a la URL original. Esto tiene la ventaja de que la página se actualiza sin ser recargada.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;section class=&quot;p1&quot;
  amp-access=&quot;subscriber&quot;
  amp-access-hide
  role=&quot;button&quot;
  tabindex=&quot;0&quot;&gt;
  &lt;a class=&quot;ampstart-btn caps&quot;
    on=&quot;tap:amp-access.login-sign-out&quot;&gt;Logout&lt;/a&gt;
&lt;/section&gt;
&lt;/div&gt;
&amp;lt;section class=&quot;p1&quot;
&amp;nbsp; amp-access=&quot;subscriber&quot;
&amp;nbsp; amp-access-hide
&amp;nbsp; role=&quot;button&quot;
&amp;nbsp; tabindex=&quot;0&quot;&amp;gt;
&amp;nbsp; &amp;lt;a class=&quot;ampstart-btn caps&quot;
&amp;nbsp; &amp;nbsp; on=&quot;tap:amp-access.login-sign-out&quot;&amp;gt;Logout&amp;lt;/a&amp;gt;
&amp;lt;/section&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Compruebe la muestra oficial de &lt;a href=&quot;https://rocky-sierra-1919.herokuapp.com/&quot; target=&quot;_blank&quot;&gt;amp-access&lt;/a&gt; para obtener demostraciones de conteo de primer clic y de visualización.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/6434131496235152939'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/6434131496235152939'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2017/05/amp-access.html' title='Instrucciones amp-access'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1NS7F3tAra0FZ7nBCREJr4DfVtI9cA2z_Ecxbef8E02J57tNyYGMoLzSyhRXoBix6x5-tSK0QSTse7hV9ymvV8Pgb8Kn2mXaFxBuJrX9iJGPRCInWhNYk-AUwgVXNiMh9fM3BbisAGjQn/s72-c/agregar-amp-access.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-831541250933589079</id><published>2017-05-27T11:02:00.002-07:00</published><updated>2017-05-27T11:05:42.059-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML en espanol"/><title type='text'>Instrucciones ¿Agregar amp-accordion?</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPt-PK_ErubtJSJ2Qp6iDIVIQXx7G2LFZVe052Au2dMNaIIOWdOPdgKSEKHsDZnh2sbKLrC2WGCrOfIcAvMt2YgQJJSpWDfBQdYcUb5D3-cliak3UIzrWc-VKQ6FDizz42aTDUoBxPch1I/s1600/agregar-amp-accordion.png&quot; width=&quot;600&quot; height=&quot;350&quot; alt=&quot;Instrucciones ¿Agregar amp-accordion?&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;h2&gt;
&lt;b&gt;amp-accordion&lt;/b&gt;&lt;/h2&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;div class=&quot;adb-justificar&quot;&gt;
Un acordeón proporciona una manera para que los espectadores tengan una mirada en el contorno del contenido y salten a una sección o su opción en su voluntad.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Agregar&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Importe el componente amp-accordion justo después de la apertura &amp;lt;head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

&amp;lt;script async custom-element=&quot;amp-accordion&quot; src=&quot;https://cdn.ampproject.org/v0/amp-accordion-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Uso básico&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Cada uno de los componentes amp-accordion se considera una sección en el acordeón. Cada uno de estos nodos debe ser una etiqueta &lt;b&gt;&amp;lt;section&amp;gt;&lt;/b&gt;. Cada &lt;b&gt;&amp;lt;section&amp;gt;&lt;/b&gt; debe contener sólo dos hijos directos. El primer hijo (de la sección) será considerado como el encabezamiento de la sección. Al hacer clic / pulsar en esta sección, se disparará el comportamiento de expansión / contracción. Utilice el atributo &lt;b&gt;disable-session-states&lt;/b&gt; para deshabilitar la preservación del estado de acordeón en una sesión.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-accordion&gt;
  &lt;section expanded&gt;
    &lt;h4&gt;Section 1&lt;/h4&gt;
    &lt;p&gt;Bunch of awesome content.&lt;/p&gt;
  &lt;/section&gt;
  &lt;section&gt;
    &lt;h4&gt;Section 2&lt;/h4&gt;
    &lt;div&gt;Bunch of even more awesome content. This time in a
      &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;.&lt;/div&gt;
  &lt;/section&gt;
  &lt;section&gt;
    &lt;h4&gt;Section 3&lt;/h4&gt;
    &lt;figure&gt;
      &lt;amp-img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLKXsj9t1lbfdY9VBBmpqqVOmA3uxTL4urLxm5opNuGxb7s_skxi81OFk200wRA4MaPl_ZV3qOunsQiQVRI0-8bDefxDSJOLGDKe2dbhXjE9pkmpYHbfM28eNvQ02RRvaZgW8D7aqP0XxO/s1600/Proyecto-amp-html-en-espanol.jpg&quot;
        width=&quot;1080&quot;
        height=&quot;610&quot;
        layout=&quot;responsive&quot;
        alt=&quot;an image&quot;&gt;&lt;/amp-img&gt;
      &lt;figcaption&gt;Images work as well.&lt;/figcaption&gt;
    &lt;/figure&gt;
  &lt;/section&gt;
&lt;/amp-accordion&gt;
&lt;/div&gt;
&amp;lt;amp-accordion&amp;gt;
&amp;nbsp; &amp;lt;section expanded&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Section 1&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Bunch of awesome content.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Section 2&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;Bunch of even more awesome content. This time in a
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;code&amp;gt;&amp;amp;lt;div&amp;amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Section 3&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;figure&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;amp-img src=&quot;/img/amp.jpg&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width=&quot;1080&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; height=&quot;610&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout=&quot;responsive&quot;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alt=&quot;an image&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;figcaption&amp;gt;Images work as well.&amp;lt;/figcaption&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/figure&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;lt;/amp-accordion&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Estilizar el acordeón&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-accordion añade el atributo &lt;b&gt;expanded&lt;/b&gt; a cualquier elemento expandido. Puede utilizar &lt;a href=&quot;https://developer.mozilla.org/en/docs/Web/CSS/Attribute_selectors&quot; target=&quot;_blank&quot;&gt;selectores de atributos CSS &lt;/a&gt;para diseñar una sección de acordeón en función de si se ha expandido o contraído. Utilice la &lt;b&gt;section[expanded]&lt;/b&gt;&amp;nbsp;para diseñar el estado expandido y la &lt;b&gt;section:not([expanded])&lt;/b&gt; para diseñar el estado de colapsado&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

amp-accordion section[expanded] .show-more {
&amp;nbsp; display: none;
}
amp-accordion section:not([expanded]) .show-less {
&amp;nbsp; display: none;
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Este ejemplo muestra un título diferente basado en si la sección está expandida o no.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-accordion disable-session-states&gt;
  &lt;section&gt;
    &lt;h4&gt;
      &lt;span class=&quot;show-more&quot;&gt;Show more&lt;/span&gt;
      &lt;span class=&quot;show-less&quot;&gt;Show less&lt;/span&gt;
    &lt;/h4&gt;
    &lt;p&gt;Id lacus amet. Aliquam eos nunc ut scelerisque lacinia, eu rutrum id, vestibulum aliqua vivamus luctus eu rhoncus ut, sodales id. Velit lacus, fermentum neque et sagittis, ac venenatis volutpat, dolore neque feugiat proin fermentum odio, odio arcu
      in eu wisi. &lt;/p&gt;
  &lt;/section&gt;
&lt;/amp-accordion&gt;
&lt;/div&gt;
&amp;lt;amp-accordion disable-session-states&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;show-more&quot;&amp;gt;Show more&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;show-less&quot;&amp;gt;Show less&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Id lacus amet. Aliquam eos nunc ut scelerisque lacinia, eu rutrum id, vestibulum aliqua vivamus luctus eu rhoncus ut, sodales id. Velit lacus, fermentum neque et sagittis, ac venenatis volutpat, dolore neque feugiat proin fermentum odio, odio arcu
&amp;nbsp; &amp;nbsp; &amp;nbsp; in eu wisi. &amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;lt;/amp-accordion&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Aquí hay otro ejemplo, que oculta el botón &quot;Mostrar más&quot; una vez que se ha hecho clic.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-accordion id=&quot;hidden-header&quot;
  disable-session-states&gt;
  &lt;section&gt;
    &lt;h4&gt;
      &lt;span class=&quot;show-more&quot;&gt;Show more&lt;/span&gt;
    &lt;/h4&gt;
    &lt;p&gt;Id lacus amet. Aliquam eos nunc ut scelerisque lacinia, eu rutrum id, vestibulum aliqua vivamus luctus eu rhoncus ut, sodales id. Velit lacus, fermentum neque et sagittis, ac venenatis volutpat, dolore neque feugiat proin fermentum odio, odio arcu
      in eu wisi. &lt;/p&gt;
  &lt;/section&gt;
&lt;/amp-accordion&gt;
&lt;/div&gt;
&amp;lt;amp-accordion id=&quot;hidden-header&quot;
&amp;nbsp; disable-session-states&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;span class=&quot;show-more&quot;&amp;gt;Show more&amp;lt;/span&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Id lacus amet. Aliquam eos nunc ut scelerisque lacinia, eu rutrum id, vestibulum aliqua vivamus luctus eu rhoncus ut, sodales id. Velit lacus, fermentum neque et sagittis, ac venenatis volutpat, dolore neque feugiat proin fermentum odio, odio arcu
&amp;nbsp; &amp;nbsp; &amp;nbsp; in eu wisi. &amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;lt;/amp-accordion&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Acordeones anidados&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Incluso puede anidar múltiples acordeones. Sólo asegúrese de evitar elementos de estilo basado en el estado expandido del amplificador de acordeón incluido. En particular, evite reglas demasiado genéricas como:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

section[expanded] h4 {
&amp;nbsp; ...
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
En lugar de los elementos directamente objetivo:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

section[expanded] &amp;gt; h4 {
&amp;nbsp; ...
}

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Un acordeón anidado:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-accordion disable-session-states&gt;
  &lt;section&gt;
    &lt;h4&gt;Section 1&lt;/h4&gt;
    &lt;p&gt;Bunch of content.&lt;/p&gt;
  &lt;/section&gt;
  &lt;section&gt;
    &lt;h4&gt;Section 2&lt;/h4&gt;
    &lt;amp-accordion class=&quot;nested-accordion&quot;&gt;
      &lt;section&gt;
        &lt;h4&gt;Nested Section 2.1&lt;/h4&gt;
        &lt;p&gt;Bunch of content.&lt;/p&gt;
      &lt;/section&gt;
      &lt;section&gt;
        &lt;h4&gt;Nested Section 2.2&lt;/h4&gt;
        &lt;p&gt;Bunch of more content.&lt;/p&gt;
      &lt;/section&gt;
    &lt;/amp-accordion&gt;
  &lt;/section&gt;
&lt;/amp-accordion&gt;
&lt;/div&gt;
&amp;lt;amp-accordion disable-session-states&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Section 1&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Bunch of content.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Section 2&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;amp-accordion class=&quot;nested-accordion&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Nested Section 2.1&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Bunch of content.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h4&amp;gt;Nested Section 2.2&amp;lt;/h4&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Bunch of more content.&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/section&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/amp-accordion&amp;gt;
&amp;nbsp; &amp;lt;/section&amp;gt;
&amp;lt;/amp-accordion&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/831541250933589079'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/831541250933589079'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2017/05/amp-accordion.html' title='Instrucciones ¿Agregar amp-accordion?'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPt-PK_ErubtJSJ2Qp6iDIVIQXx7G2LFZVe052Au2dMNaIIOWdOPdgKSEKHsDZnh2sbKLrC2WGCrOfIcAvMt2YgQJJSpWDfBQdYcUb5D3-cliak3UIzrWc-VKQ6FDizz42aTDUoBxPch1I/s72-c/agregar-amp-accordion.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-5979800564185403334.post-4947373173729054715</id><published>2017-05-27T10:34:00.003-07:00</published><updated>2017-05-27T10:34:43.694-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Amp HTML en espanol"/><title type='text'>Agregar amp-ad</title><content type='html'>&lt;noscript&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXCg-yFV6zeX6KYQa5JrwLDJBvgLYQUhhUQ5ePQoQ0eWApkhEclruHpbVOh7zwt4btzKnVTv19WSkOsGNVRf54k3JlwiCVoyCKZ5RzunpVRwMMsMMSiKvsgKWprXIexZi6twAS37AeDnEG/s1600/agregar-amp-ad.png&quot; width=&quot;600&quot; height=&quot;350&quot; alt=&quot;Agregar amp-ad&quot;/&gt;&lt;/noscript&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;h2&gt;
&lt;b&gt;amp-ad&lt;/b&gt;&lt;/h2&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;div class=&quot;adb-justificar&quot;&gt;
Cómo mostrar anuncios en los archivos HTML de AMP.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Agregar&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Importe el componente amp-ad justo después de la apertura &amp;lt;head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;&amp;lt;script async custom-element=&quot;amp-ad&quot; src=&quot;https://cdn.ampproject.org/v0/amp-ad-0.1.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Uso básico&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-ad requiere valores de width y height. Seleccione una red de anuncios a través del argumento de tipo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-ad width=&quot;300&quot;
  height=&quot;250&quot;
  type=&quot;a9&quot;
  data-aax_size=&quot;300x250&quot;
  data-aax_pubname=&quot;test123&quot;
  data-aax_src=&quot;302&quot;&gt;
&lt;/amp-ad&gt;
&lt;/div&gt;
&amp;lt;amp-ad width=&quot;300&quot;
&amp;nbsp; height=&quot;250&quot;
&amp;nbsp; type=&quot;a9&quot;
&amp;nbsp; data-aax_size=&quot;300x250&quot;
&amp;nbsp; data-aax_pubname=&quot;test123&quot;
&amp;nbsp; data-aax_src=&quot;302&quot;&amp;gt;
&amp;lt;/amp-ad&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Uso de marcadores de posición&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Opcionalmente, &lt;b&gt;amp-ad&lt;/b&gt; admite un elemento &lt;b&gt;placeholder&lt;/b&gt; con el marcador de posición. Si la red de anuncios lo admite, se muestra este elemento hasta que el anuncio esté disponible para su visualización.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-ad width=&quot;300&quot;
  height=&quot;200&quot;
  type=&quot;doubleclick&quot;
  data-slot=&quot;/4119129/doesnt-exist&quot;&gt;
  &lt;div placeholder&gt;
    &lt;b&gt;Placeholder here!!!&lt;/b&gt;
  &lt;/div&gt;
&lt;/amp-ad&gt;
&lt;/div&gt;
&amp;lt;amp-ad width=&quot;300&quot;
&amp;nbsp; height=&quot;200&quot;
&amp;nbsp; type=&quot;doubleclick&quot;
&amp;nbsp; data-slot=&quot;/4119129/doesnt-exist&quot;&amp;gt;
&amp;nbsp; &amp;lt;div placeholder&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;b&amp;gt;Placeholder here!!!&amp;lt;/b&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/amp-ad&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Uso de alternativas&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
amp-ad es compatible con un elemento secundario con el atributo &lt;b&gt;fallback&lt;/b&gt;. Si está soportado por la red de anuncios, este elemento se muestra si no hay ningún anuncio disponible para esta ranura.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;abe-code-preview ampstart-card mb1&quot;&gt;
&lt;div class=&quot;abe-code&quot;&gt;
&lt;pre&gt;

Ejemplo

&lt;div class=&quot;abe-preview fit mb1&quot;&gt;
&lt;amp-ad width=&quot;300&quot;
  height=&quot;200&quot;
  type=&quot;doubleclick&quot;
  data-slot=&quot;/4119129/doesnt-exist&quot;&gt;
  &lt;div fallback&gt;
    &lt;p&gt;Thank you for trying AMP!&lt;/p&gt;
    &lt;p&gt;You got lucky! We have no ad to show to you!&lt;/p&gt;
  &lt;/div&gt;
&lt;/amp-ad&gt;
&lt;/div&gt;
&amp;lt;amp-ad width=&quot;300&quot;
&amp;nbsp; height=&quot;200&quot;
&amp;nbsp; type=&quot;doubleclick&quot;
&amp;nbsp; data-slot=&quot;/4119129/doesnt-exist&quot;&amp;gt;
&amp;nbsp; &amp;lt;div fallback&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Thank you for trying AMP!&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;You got lucky! We have no ad to show to you!&amp;lt;/p&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;lt;/amp-ad&amp;gt;

&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Para obtener más muestras de anuncios, consulte la &lt;a href=&quot;https://dfp-amp-testing-1185.appspot.com/&quot; target=&quot;_blank&quot;&gt;página de prueba de anuncios de DFP&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4947373173729054715'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5979800564185403334/posts/default/4947373173729054715'/><link rel='alternate' type='text/html' href='https://amphtmlejemplos.blogspot.com/2017/05/amp-ad.html' title='Agregar amp-ad'/><author><name>Ayudadeblogger</name><uri>http://www.blogger.com/profile/06229631744024418938</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOfkcGsGvralg6feCTyCSH1ZdqfbFo9Gd1RUgYWuXlL3CpZvg2mWoRYVQ4EjYsjZA1XibUkLLp3zn6V45pzygJmqcB1t0igDkiXMAuJd_Q0o5uAULbEmIxOfj5YMBSAFgkrS8yuDfz2powMgwEZA9Y3qxB2YY7oEufzyflH9LYM48Thp8/s220/glui.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXCg-yFV6zeX6KYQa5JrwLDJBvgLYQUhhUQ5ePQoQ0eWApkhEclruHpbVOh7zwt4btzKnVTv19WSkOsGNVRf54k3JlwiCVoyCKZ5RzunpVRwMMsMMSiKvsgKWprXIexZi6twAS37AeDnEG/s72-c/agregar-amp-ad.png" height="72" width="72"/></entry></feed>