# Dynamically tweening a dynamic gradient

**URL:** <https://forum.kirupa.com/t/dynamically-tweening-a-dynamic-gradient/210170>\
**Category:** Uncategorized\
**Created:** [December 15, 2006, 8:02pm UTC](https://forum.kirupa.com/t/dynamically-tweening-a-dynamic-gradient/210170 "2006-12-15T20:02:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![notion](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@notion](https://forum.kirupa.com/u/notion)\
**Post date:** [December 15, 2006, 8:02pm UTC](https://forum.kirupa.com/t/dynamically-tweening-a-dynamic-gradient/210170/1 "2006-12-15T20:02:05Z")

</div>

[FONT=Arial][SIZE=2][FONT=Arial]I’m building a website. The background for each of the sections of the site is a different colored linear gradient. Does anyone have any ideas on how to build a class, prototype or series of functions that will dynamically change the background gradient from one colored gradient to another over a period of time? If anyone has any pre-built code and wouldn’t mind sharing I will greatly appreciate it![/FONT][/SIZE][/FONT]  
[FONT=Arial][SIZE=2][FONT=Arial]Thanks[/FONT][/SIZE][/FONT]
