Title: Twenty20 Image Before-After
Author: Zayed Baloch
Published: <strong>28 d'abril de 2016</strong>
Last modified: 2 de març de 2025

---

Cerca extensions

![](https://ps.w.org/twenty20/assets/banner-772x250.png?rev=3241520)

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/twenty20/assets/icon-256x256.png?rev=3241520)

# Twenty20 Image Before-After

 Per [Zayed Baloch](https://profiles.wordpress.org/zayedbaloch/)

[Baixa](https://downloads.wordpress.org/plugin/twenty20.2.0.4.zip)

 * [Detalls](https://ca.wordpress.org/plugins/twenty20/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/twenty20/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/twenty20/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/twenty20/#developers)

 [Suport](https://wordpress.org/support/plugin/twenty20/)

## Descripció

Twenty20 is a professional-grade image comparison tool that helps you showcase transformations
in a highly engaging way. Perfect for:

 * Photography portfolios
 * Real estate before/after
 * Renovation projects
 * Design makeovers
 * Product comparisons
 * Restoration work
 * Medical procedures
 * And much more!

#### Video Tutorial

#### Live Demo

Check the [Live Demo](https://zayedbaloch.com/twenty20-image-before-after-wordpress-plugin/).

#### Key Features

 * Responsive design – works perfectly on all devices
 * Horizontal and vertical sliding options
 * Customizable slider position and orientation
 * Custom «before» and «after» labels
 * Adjustable image widths and alignments
 * Mouse hover sliding effect
 * Touch-enabled for mobile devices
 * Multiple sliders per page
 * Widget support for sidebars
 * SEO-friendly with proper alt tag support
 * Accessibility compliant image comparisons

#### Page Builder Support

 * Elementor
 * WPBakery Page Builder (Visual Composer)
 * Flatsome UX Builder
 * Classic Editor

#### Perfect For

 * Photography before/after edits
 * Home renovation comparisons
 * Web design makeovers
 * Product transformations
 * Restoration projects
 * Beauty transformations
 * Real estate renovations

### Usage

#### Shortcode Example

**Quick Example**

    ```
    [twenty20 img1="" img2="" direction="vertical" offset="0.5" align="right" width="60%" before="Before" after="After" hover="true"]
    ```

**Shortcode Parameters**

 * `img1` – image ID.
 * `img2` – image ID.
 * `offset` – range from 0.1 to 1.0.
 * `direction` – `horizontal|vertical`.
 * `align` – `none|right|left`.
 * `width` – supports both `px` and `%`.
 * `before` – text for the «before» label.
 * `after` – text for the «after» label.
 * `hover` – `true` or `false`.

## Captures

[⌊Add a Twenty20 before-after image.⌉⌊Add a Twenty20 before-after image.⌉[

Add a Twenty20 before-after image.

[⌊Select any two images from the Media Library.⌉⌊Select any two images from the 
Media Library.⌉[

Select any two images from the Media Library.

[⌊Twenty20 shortcode settings page.⌉⌊Twenty20 shortcode settings page.⌉[

Twenty20 shortcode settings page.

[⌊Shortcode.⌉⌊Shortcode.⌉[

Shortcode.

[⌊Twenty20 in action.⌉⌊Twenty20 in action.⌉[

Twenty20 in action.

[⌊Multiple sliders in different directions.⌉⌊Multiple sliders in different directions
.⌉[

Multiple sliders in different directions.

[⌊Twenty20 widget.⌉⌊Twenty20 widget.⌉[

Twenty20 widget.

[⌊Widget in action.⌉⌊Widget in action.⌉[

Widget in action.

[⌊WP Bakery Visual Composer settings.⌉⌊WP Bakery Visual Composer settings.⌉[

WP Bakery Visual Composer settings.

[⌊Elementor element.⌉⌊Elementor element.⌉[

Elementor element.

[⌊UX Builder element.⌉⌊UX Builder element.⌉[

UX Builder element.

## Instal·lació

 1. Upload the `twenty20` folder to your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the shortcode `[twenty20]` in your posts/pages or use the widget

#### Quick Start Guide

 1. Click the «Add Twenty20» button in your editor
 2. Select your before and after images
 3. Customize settings as needed
 4. Insert and publish

## PMF

### How it works?

Twenty20 works by stacking two images on top of each other. As the slider moves 
across the image.

### Quick Example

[twenty20 img1=»» img2=»» direction=»vertical» offset=»0.5″ align=»right» width=»
60%» before=»Before» after=»After» hover=»true»]

### Shortcode Parameters

 * `img1` – image ID.
 * `img2` – image ID.
 * `offset` – range from 0.1 to 1.0.
 * `direction` – `horizontal|vertical`.
 * `align` – `none|right|left`.
 * `width` – supports both px and %.
 * `before` – text for the «before» label.
 * `after` – text for the «after» label.
 * `hover` – `true` or `false`.

### How to add before-after slider?

Check the demo [Video](https://www.youtube.com/watch?v=1cQ9rhL-t70) demo.

### How do I add a widget?

Watch the [video demo](https://www.youtube.com/watch?v=1cQ9rhL-t70) on YouTube.

### Can I use more than one slider in a single post or page?

Yes, the Twenty20 plugin allows users to add unlimited before-after sliders.

## Ressenyes

![](https://secure.gravatar.com/avatar/f3d659e966383b6cb4a6f0bdd74ee3baaa1092be9e2a0a7c4c75781fe01ac210?
s=60&d=retro&r=g)

### 󠀁[Great plugin, fast support](https://wordpress.org/support/topic/great-plugin-fast-support-54/)󠁿

 [bing4](https://profiles.wordpress.org/bing4/) 12 de agost de 2024

Great plugin, fast support, simple, easy to use.

![](https://secure.gravatar.com/avatar/9ce6ff06228d96fe00b9c08997c548b95c07ec684b8683d1f965ed6717569f35?
s=60&d=retro&r=g)

### 󠀁[No Longer Working](https://wordpress.org/support/topic/no-longer-working-159/)󠁿

 [](https://profiles.wordpress.org/vegasdood/) 24 de setembre de 2023

Type for an update or get pulled.

![](https://secure.gravatar.com/avatar/35cbcb591e6ef4013bbd838ea1cb93cbfb26afd446df2946f7a1824692aa88c5?
s=60&d=retro&r=g)

### 󠀁[ブロックエディター未対応](https://wordpress.org/support/topic/%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%e3%82%a8%e3%83%87%e3%82%a3%e3%82%bf%e3%83%bc%e6%9c%aa%e5%af%be%e5%bf%9c/)󠁿

 [tsutlnps149](https://profiles.wordpress.org/tsutlnps149/) 24 de març de 2023

恐らく、このプラグインはブロックエディターに対応していないので、Gutenbergでは画像
が挿入できないです。 あと、lazyload.jsや»loading=lazy»を使用すると、表示されなく
なったり画像下に空白ができてしまったりするバグがあるため、画像表示が崩れます。

![](https://secure.gravatar.com/avatar/69b138e5efa7d3db2c346235fc5a3bb933b9443a3e44ba74a01975c09b508920?
s=60&d=retro&r=g)

### 󠀁[Suberb plugin!](https://wordpress.org/support/topic/suberb-plugin/)󠁿

 [boraboraphotovideo](https://profiles.wordpress.org/boraboraphotovideo/) 21 de 
març de 2022

Wonderful functionality for a photographer or photo re-toucher / editor. Easy to
install and implement, may be caused by another plugin conflict it recently had 
stopped working. The support was very prompt, the developer was able to solve the
issue right away!

![](https://secure.gravatar.com/avatar/b1ff3baf8b42e63403dba61fbcb17161837887361b6ee153500c862205bcd355?
s=60&d=retro&r=g)

### 󠀁[Good job](https://wordpress.org/support/topic/not-working-on-5-8/)󠁿

 [ucan74](https://profiles.wordpress.org/ucan74/) 7 de setembre de 2021 3 respostes

Works fine under WPv5.8 and Enfoldv4.8.6 (little bit tricky with the internal builder
but it’s ok)

![](https://secure.gravatar.com/avatar/3486f6d22d391b1693fa2ec67509657f9b7237f7a358de5ef736659d99ba02ee?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin!](https://wordpress.org/support/topic/excellent-plugin-7128/)󠁿

 [Serge](https://profiles.wordpress.org/serge-wp/) 3 de juny de 2021

This plugin does exactly what it says on the tin and works straight out-of-the-box.
Excellent stuff! Oh, and it also works perfectly on WP 5.7.2 – at least with my 
current selection of themes.

 [ Llegiu totes les 55 ressenyes ](https://wordpress.org/support/plugin/twenty20/reviews/)

## Col·laboradors i desenvolupadors

«Twenty20 Image Before-After» és programari de codi obert. La següent gent ha col·laborat
en aquesta extensió.

Col·laboradors

 *   [ Zayed Baloch ](https://profiles.wordpress.org/zayedbaloch/)
 *   [ Hammal Albulushi ](https://profiles.wordpress.org/hammal/)

[Traduïu «Twenty20 Image Before-After» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/twenty20)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/twenty20/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/twenty20/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/twenty20/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/twenty20/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 2.0.4

 * Minor fixes

#### 2.0.3

 * Minor fixes

#### 2.0.2

 * Fixed: Missing alt attributes in image comparison

#### 2.0.1

 * Improved: Accessibility compliance
 * Improved: SEO optimization for image comparisons

#### 2.0.0

 * Complete codebase modernization
 * New: Enhanced image loading system
 * New: Improved mobile touch response
 * New: Better compatibility with page builders
 * New: Modernized admin interface
 * Fixed: Widget image selection issues
 * Fixed: Image replacement bug in widgets
 * Fixed: Admin CSS loading in editor
 * Fixed: Multiple slider initialization issues
 * Improved: Script loading reliability
 * Improved: Overall performance optimization

#### 1.7.6

 * Fixed Elementor Widget
 * Improved mobile responsiveness
 * Performance optimizations

#### 1.7.5

 * Fixed Elementor Widget

#### 1.7.4

 * Fixed Elementor Widget

#### 1.7.3

 * Bug fixes

#### 1.7.2

 * Improve script

#### 1.7.1

 * Bug fixes

#### 1.7.0

 * Bug fixes

#### 1.6.1

 * Bug fixes.

#### 1.6.0

 * Security fixes, and passed in WordPress review.

#### 1.5.9

 * Security fixes

#### 1.5.8

 * Fix: Minor jQuery fix

#### 1.5.7

 * Fix: WP 5.6 Uncaught TypeError (Thanks to @negru13)

#### 1.5.6

 * Fix: Jetpack’s lazy load images issue

#### 1.5.5

 * Fix: Widget mouse over.

#### 1.5.4

 * Added: Integrated with WP Image alt.

#### 1.5.3

 * Fixed cation overlay issue.

#### 1.5.2

 * Fixed Before and After shortcode insert issue

#### 1.5.1

 * Fixed loading issue

#### 1.5

 * NEW: Add Elementor Page builder support.
 * NEW: Add UX Builder by UXThemes support.
 * Minor CSS fixes

#### 1.4

 * NEW: ‘Move slider on mouse over’.

#### 1.3

 * NEW: Image Before and After caption.
 * Fixed arrow shadow css.
 * Widget updated.

#### 1.2

 * Fixed alignment bug

#### 1.1

 * Fixed width issue

#### 1.0

 * First Release

## Meta

 *  Versió **2.0.4**
 *  Darrera actualització **fa 1 any**
 *  Instal·lacions actives **20.000+**
 *  Versió del WordPress ** 5.9 o posterior **
 *  Provada fins a **6.7.5**
 *  Versió del PHP ** 5.6 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/twenty20/)
 * Etiquetes
 * [before after slider](https://ca.wordpress.org/plugins/tags/before-after-slider/)
   [elementor](https://ca.wordpress.org/plugins/tags/elementor/)[image comparison](https://ca.wordpress.org/plugins/tags/image-comparison/)
   [image slider](https://ca.wordpress.org/plugins/tags/image-slider/)[visual composer](https://ca.wordpress.org/plugins/tags/visual-composer/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/twenty20/advanced/)

## Valoracions

 4 sobre 5 estrelles.

 *  [  35 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/twenty20/reviews/?filter=5)
 *  [  6 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/twenty20/reviews/?filter=4)
 *  [  1 valoració de 3 estrelles     ](https://wordpress.org/support/plugin/twenty20/reviews/?filter=3)
 *  [  4 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/twenty20/reviews/?filter=2)
 *  [  9 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/twenty20/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/twenty20/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/twenty20/reviews/)

## Col·laboradors

 *   [ Zayed Baloch ](https://profiles.wordpress.org/zayedbaloch/)
 *   [ Hammal Albulushi ](https://profiles.wordpress.org/hammal/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/twenty20/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](https://www.paypal.me/zayedbaloch)