Rising sun in WordPress
A sun rises behind hills then slowly radiates, for the warm header of a guesthouse, a campsite or a solar brand.
Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.
This component also comes in
The code in WordPress
<?php
/**
* Plugin Name: Forge, Soleil levant
* Description: Un soleil se lève derrière des collines puis rayonne lentement, pour l’en-tête chaleureux d’un gîte, d’un camping ou d’une marque solaire. Ajoute la composition « Soleil levant » à l'éditeur de blocs.
* Version: 1.0.0
* Requires at least: 6.6
* Requires PHP: 8.1
* Author: Forge
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: forge-effet-soleil-levant
*<!-- wp:group {"tagName": "section", "className": "efsl", "layout": {"type": "default"}} -->
<section class="wp-block-group efsl"><!-- wp:html -->
<div class="efsl-scene" aria-hidden="true">
<span class="efsl-sun"><span class="efsl-rays"></span><span class="efsl-disc"></span></span>
<span class="efsl-hill efsl-hill--back"></span>
<span class="efsl-hill efsl-hill--front"></span>
</div>
<!-- /wp:html -->
<!-- wp:group {"className": "efsl-body", "layout": {"type": "default"}} -->
<div class="wp-block-group efsl-body"><!-- wp:paragraph {"className": "efsl-eyebrow"} -->
<p class="efsl-eyebrow">Le Mas de l’Aube · Nyons, Drôme provençale</p>
<!-- /wp:paragraph -->:root {
--efsl-card: #fffaf3;
--efsl-text: #2c1d12;
--efsl-muted: #5e4a3b;
--efsl-sky: linear-gradient(180deg, #fbd5a5, #fdecc8 70%);
--efsl-sun: #f59e0b;
--efsl-ray: rgb(245 158 11 / 0.28);
--efsl-back: #a3b18a;
--efsl-front: #5f7a4a;
--efsl-accent: #9a3412;
--efsl-accent-text: #ffffff;
--demo-effet-soleil-levant-bg: #f3ebe0;Free component: copy it freely, including for commercial projects.
Other visual effects components in WordPress
Visual effects components in WordPress
A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- WordPress

Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.
- Tailwind
- React
- CSS
- WordPress

A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.
- Tailwind
- React
- CSS
- WordPress

A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.
- Tailwind
- React
- CSS
- WordPress

A paragraph whose words turn from grey to full ink, one by one, as the page scrolls, in pure CSS with a plain-text fallback.
- Tailwind
- React
- CSS
- WordPress

Four offset, translucent sine waves gently roll along the bottom of a section, each at its own pace.
- Tailwind
- React
- CSS
- WordPress